Cognizant GenC Elevate Assessment (2025) | OA | Focus: Mathematics & Puzzles
Cognizant · Question · Posted Jun 2026
Question 1: Coin Game Problem Statement You are given two piles of coins where Pile A has x coins, and Pile B has y coins. In each turn, you can either pick 2 coins from Pile A and 1 coin from Pile B or 1 coin from Pile A and 2 coins from Pile B. Check whether it is possible to empty both the piles or not. Input Format The first line of input contains an integer T. In the ...
The full answer & interview discussion are available to premium members.
Log in Create a free account