HackerRank Solution – Problem Solving – Game of Two Stacks
Alexa has two stacks of non-negative integers, stack a[n] and stack b[m] where index 0 denotes the top of the stack. Alexa challenges Nick to play the following game: In each move, Nick can remove one integer from the top of either stack a or stack b. Nick keeps a running sum of the… Read More »HackerRank Solution – Problem Solving – Game of Two Stacks