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.
You don't need the reverse functions if you just pop from the 0 index in commonHighest.
Interesting use for the iterator, but I think just going through it while checking sum equality would be better.
Equal Stacks
You are viewing a single comment's thread. Return to all comments →
You don't need the reverse functions if you just pop from the 0 index in commonHighest. Interesting use for the iterator, but I think just going through it while checking sum equality would be better.
My code for common highest: