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
Find sum of the leaf nodes of the binary tree, provided there are billions of nodes in the tree. Expected O(1) space solution (you can't use recursion as it will throw stack overflow exception).