Tree
1161. Maximum Level Sum of a Binary Tree
Return the level (root = 1) with the maximum sum of node values, smallest level number on ties. "Per level" points straight at a level-by-level BFS: sum each level, track the best.
Loading…
Return the level (root = 1) with the maximum sum of node values, smallest level number on ties. "Per level" points straight at a level-by-level BFS: sum each level, track the best.
Loading…