Leetcode 75 day16 (Maximum Level Sum of a Binary Tree, Delete Node in a BST, Letter Combinations of a Phone Number)
리트코드 75 16일 차. 이진트리 1문제, BST 1문제, 백트래킹 1문제를 풀었다. 벌써 2주가 지났다. 48문제를 푼 건데 남은 27문제는 혼자서는 도저히 안 풀릴 것 같은 문제들이다 😢 각 잡고 30분 동안 풀어보고, 못 풀면 해답 보고 풀이를 이해하는 식으로 공부해보려고 한다. 1161. Maximum Level Sum of a Binary Tree 주어진 이진 트리에서 루트를 레벨 1, 그다음 자식 노드들을 레벨 2, 3...으로 정의할 때 각 레벨의 모든 노드 값의 합이 최대가 되는 가장 작은 레벨을 구하라. Given the root of a binary tree, the level of its root is 1, the level of its children is 2, and so on...
더보기