TCS Company

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

Read Solution (Total 5)

TCS Other Question

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.
(40*40*40-31*31*31)/(40*40+40*31+31*31)=?