We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
1) calculate all the sum of each stacks
2) pop out a item on the surface from the current maximum height stack.
3) check all the stacks have the same height
Equal Stacks
You are viewing a single comment's thread. Return to all comments →
simple approach::
looping 2) and 3) nothing left to pop out