Given the root of a binary tree, return the level that has the minimum sum of node values.
The level of the root is
If there is a tie for the minimum sum across multiple levels, return the smallest level number.
Constraints:
The number of nodes in the tree is in the range
Node.val
Given the root of a binary tree, return the level that has the minimum sum of node values.
The level of the root is
If there is a tie for the minimum sum across multiple levels, return the smallest level number.
Constraints:
The number of nodes in the tree is in the range
Node.val