TCS Company

Alok and Bhanu play the following min-max game. Given the expression
N = 9 + X + Y - Z
Where X, Y and Z are variables representing single digits (0 to 9), Alok would like to maximize N while Bhanu would like to minimize it. Towards this end, Alok chooses a single digit number and Bhanu substitutes this for a variable of her choice (X, Y or Z). Alok then chooses the next value and Bhanu, the variable to substitute the value. Finally Alok proposes the value for the remaining variable.
Assuming both play to their optimal strategies, the value of N at the end of the game would be
27
0.0
20
18

Read Solution (Total 14)

TCS Other Question

The pacelength P is the distance between the rear of two consecutive footprints. For men, the formula, n/P = 144 gives an approximate relationship between n and P where, n = number of steps per minute and P = pacelength in meters. Bernard knows his pacelength is 164cm. The formula applies to Bernard's walking. Calculate Bernard's walking speed in kmph. 36 people {a1, a2,...,a36} meet and shake hands in a circular fashion. In other words, there are totally 36 handshakes involving the pairs, {a1, a2}, {a2, a3},....,{a35, a36}, {a36, a1}. Then size of the smallest set of people such that the rest have shaken hands with at least one person in the set is