• + 1 comment

    Here is another solution - https://programmingoneonone.com/hackerrank-game-of-two-stacks-problem-solution.html

    • + 0 comments

      actually when they go over b, they try to remove from a, adding more from b. Also they're constantly checking if there can be a balance where one removes more results from a but adds more from b. it can end in being all results from b and none from a