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.
Test Case 1:
N = 3, so there are three blocks labeled 1, 2, and 3. No matter how Kitty makes the first move, Katty will win. ( Not so )
If kitty chooses A=1 and B=3 on the first move and inserts a block labeled -2. the set of blocks becomes {-2, 2}.
Katty then may choose the final result to be 4 or -4. The game ends Kitty is the winner..
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Kitty and Katty
You are viewing a single comment's thread. Return to all comments →
I must be missing something
Test Case 1: N = 3, so there are three blocks labeled 1, 2, and 3. No matter how Kitty makes the first move, Katty will win. ( Not so ) If kitty chooses A=1 and B=3 on the first move and inserts a block labeled -2. the set of blocks becomes {-2, 2}. Katty then may choose the final result to be 4 or -4. The game ends Kitty is the winner..