You are viewing a single comment's thread. Return to all comments →
A greedy strategy to pick the smaller element from the top elements of A and B is giving me wrong answer for many test cases. Any hints for that ?
Game of Two Stacks
You are viewing a single comment's thread. Return to all comments →
A greedy strategy to pick the smaller element from the top elements of A and B is giving me wrong answer for many test cases. Any hints for that ?