TCS Company

Alice and Bob play the following coins-on-a-stack game. 20 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 by 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 (0 = i = 20). We will call this an 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 gold coin happens to be on top when it's a player's turn then the player wins the game.


Initially, the gold coinis the third coin from the top. Then
Alice has no winning strategy.
In order to win, Alice's first move should be a 1-move.
In order to win, Alice's first move can be a 0-move or a 1-move.
In order to win, Alice's first move should be a 0-move.

Read Solution (Total 11)

TCS Other Question

Given 3 lines in the plane such that the points of intersection form a triangle with sides of length 20, 20 and 30, the number of points equidistant from all the 3 lines is
a) 1
b) 3
c) 4
d) 0
Anoop managed to draw 7 circles of equal radii with their centres on the diagonal of a square such that the two extreme circles touch two sides of the square and each middle circle touches two circles on either side. Find the ratio of the radius of the circles to the side of the square