리트코드) 938. 이진 탐색 트리(BFS) 합의 범위(자바)
https://leetcode.com/problems/range-sum-of-bst
https://leetcode.com/problems/range-sum-of-bst
https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
균형 이진 트리 https://leetcode.com/problems/balanced-binary-tree
이진 트리 직렬화 & 역직렬화 https://leetcode.com/problems/serialize-and-deserialize-binary-tree
이진 트리의 반전 https://leetcode.com/problems/invert-binary-tree/
이진 트리의 직경
가장 긴 동일 값의 경로 https://leetcode.com/problems/longest-univalue-path
이진 트리의 최대 깊이 https://leetcode.com/problems/maximum-depth-of-binary-tree 문제 : 이진트리의 최대 깊이(depth) 구하라. 입력 : [3,9,20,null,null,15,7] 출력 : 3 특징 반복구조 bfs =...
네트워크 딜레이 타임
문제 : n개의 코스가 주어지고, 쌍으로 된 코스가 주어진다. 코스를 수강하려면 먼저 수강 해야 함 을 나타내는 prerequisites배열 이 제공된다. 모든 코스가 완료 가능한지 판별하라.
https://leetcode.com/problems/reconstruct-itinerary/ 문제 : [from, to]로 구성된 항공권 목록을 이용해 JFK에서 출발하는 여행 일정을 구성하라. 여러 일정이 있는 경우 사전 어휘순으로 방문한다. 입력 : [[“MUC”,”LHR...
https://leetcode.com/problems/subsets/ 문제 : 모든 부분집합을 리턴하라. 입력 : nums = [1, 2, 4] 출력 : [[], [1], [2], [4], [1,2], [1,4], [2,4], [1,2,4]] 별도의 종료조건이 필요없다....
https://leetcode.com/problems/combination-sum/ 문제 : 고유한 정수 배열 candidates과 대상 정수가 주어 지면 선택한 숫자 의 합이 가 되는 모든 고유 조합 목록을target 반환하라 입력 : [2,3,6,7], target = 7 ...
https://leetcode.com/problems/combinations/ 문제 : 전체 수 n을 입력받아 k개의 조합을 리턴하라 입력 : n=4, k=2 출력 : [[1,2,3], [1,2,4], [1,3,4], [2,3,5], [2,4,5], [3,4,5]] 순서...
https://leetcode.com/problems/permutations/ 문제 : 서로 다른 정수를 입력받아 가능한 모든 순열을 리턴하라 입력 : [1, 2, 3] 출력 : [[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1]] ...
https://leetcode.com/problems/letter-combinations-of-a-phone-number/ 문제 : 2에서 9까지 숫자가 주어졌을 때 전화번호로 조합 가능한 모든 문자를 출력하라 키패드가 주어지고 각각 매칭되는 문자가 있음 1(...