TCS Company

Alice and Bob play the following coins-on-a-stack game. 100 coins are stacked one above the other. One of them is a special (gold) coin and the rest are ordinary coins. The goal is to bring the gold coin to the top of the repeatedly moving the topmost coin to another position in the stack. Alice starts and the players take turns. A turn consists of moving the coin on the top to a position I below the top coin (for some I between 0 and 100). We will call this as i-move (thus a 0-move implies doing nothing). The proviso is that an i-move cannot be repeated, for example once a player makes a 2-move, on subsequent turns neither player can make a 2-move. If the gol coin happen to be on the top when it’s a player’s turn then the player wins the game. Initially, the gold coin is the third coin from the top. Then

In order to win, Alice’s first move should be a 1-move.
Alice has no winning strategy.
In order to win, Alice’s first move can be a 0-moveor a 1-move.
In order to win, Alice’s first move should be a 0-move.

Read Solution (Total 4)

TCS Other Question

There is a King telling a story that there are three friends Alen, Karan and Helen They went to a picnic for a long tour. They enjoyed well. They carried all necessaries which they want to utilize there. Here Alen age is 3 times the age of Helen 3 years ago. Helen is twice the age of Karan after 2 years. What is the present age of Alen. It is dark in my bedroom and I want to get two socks of the same color from my drawer, which contains 24 red and 24 blue socks. How many socks do I have to take from the drawer to gate at least two socks of the same color?
a) 2 b) 3 c) 48 d) 25