11. Container With Most Water
in Coding Interview on Medium, Two Pointers
용기가 저장할 수 있는 최대 물의 양을 반환
in Coding Interview on Medium, Two Pointers
용기가 저장할 수 있는 최대 물의 양을 반환
in Coding Interview on Medium, Tree, Binary Search Tree, Design
BST(이진 검색 트리)의 중위순회에 대한 반복자를 나타내는 BSTIterator 클래스를 구현
- boolean hasNext(): 다음값이 존재하면 true, 아니면 false
- int next(): 가장 작은 값부터 오름차순으로 값을 리턴
in Coding Interview on Medium, Linked List, HashMap
목록의 전체 복사본을 구성: 새 목록의 어떤 포인터도 원래 목록의 노드를 가리켜서는 안됨
in Coding Interview on Medium, Tree, DFS
이진 트리의 루트가 주어지면 해당 노드 값의 지그재그 수준 순회를 반환
Manage your time effectively, Do this by recording where your time goes.
An effective excutive need not even do this himself; a secretary or assistant better does it.
If this is all the executive ever does, he will still reap a substantial improvement.
in Coding Interview on Medium, DFS, Tree
이진 트리의 루트와 정수 targetSum이 주어지면 경로를 따라 값의 합이 targetSum과 같은 경로의 수를 반환
- 경로는 아래쪽으로만 가능
in Coding Interview on Easy, Linked List
두 개의 정렬된 연결 목록을 하나의 정렬된 목록으로 병합
각 주택의 금액을 나타내는 정수 배열 nums가 주어지면, 경찰에 알리지 않고 오늘 밤 훔칠 수 있는 최대 금액을 반환