#1161 - Maximum Level Sum of a Binary Tree
Given the root of a binary tree, return the smallest level number (1-indexed) that has the maximum sum of node values.
| Input | Output |
|---|---|
root = [1,7,0,7,-8,null,null] | 2 |
root = [989,null,10250,98693,-89388,null,null,null,-32127] | 2 |