Notice
Recent Posts
Recent Comments
Link
목록2026/01/06 (1)
.Zzumbong
난이도 [ 🤔 ] Medium 문제 설명 Given the root of a binary tree, the level of its root is 1, the level of its children is 2, and so on. Return the smallest level x such that the sum of all the values of nodes at level x is maximal. 이진 트리의 루트(root)가 주어집니다. 루트의 레벨은 1이고, 그 자식들의 레벨은 2, 그다음은 3으로 이어집니다.각 레벨에 있는 모든 노드 값의 합을 구했을 때, 그 합이 최대가 되는 가장 작은 레벨 x를 반환하세요.포인트 1: 합이 최대인 레벨을 찾아야 함.포인트 2: 만약 합이 같은 레벨이 여러 개라면..
coding test/leetCode
2026. 1. 6. 09:25
