You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Given a binary tree, return the tilt of the whole tree.
10
+
# The tilt of a tree node is defined as the absolute difference between the sum of all left subtree node values and the sum of all right subtree node values. Null node has tilt 0.
11
+
# The tilt of the whole tree is defined as the sum of all nodes' tilt.
0 commit comments