99. Recover Binary Search Tree
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given the root of a binary search tree (BST), where the values of exactly two nodes of the tree were swapped by mistake. Recover the tree without changing its structure. Example 1: Input: root = [1,3,null,null,2] Output: [3,1,null,null,2] Explanation: 3 cannot be a left child of 1 because 3 > 1. Swapping 1 and 3 makes the BST valid.Example 2: Input: r..
Algorithm/LeetCode
2022. 5. 7. 10:30
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Java
- @ManyToOne
- Spring Boot JPA
- 스프링 부트 회원 가입
- spring boot app
- JPA
- 스프링 부트 튜토리얼
- spring boot application
- 클린 아키텍처
- 함께 자라기
- intellij
- 헥사고날 아키텍처
- 스프링 부트
- leetcode
- 스프링 부트 애플리케이션
- Jackson
- Spring Data JPA
- spring boot jwt
- r
- Spring Boot
- 스프링부트
- 스프링 데이터 jpa
- 함께 자라기 후기
- JSON
- proto3
- Linux
- 알고리즘
- gRPC
- QueryDSL
- Spring Boot Tutorial
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함