TCS Company

A lady has fine gloves and hats in her closet - 25 blue, 7 red, and 9 yellow. The lights are out and it is totally dark. In spite of the darkness, she can make out the difference between a hat and a glove. She takes out an item out of the closet only if she is sure that if it is a glove. How many gloves must she take out to make sure she has a pair of each color ?

Read Solution (Total 10)

TCS Other Question

Consider all permutations (i.e. arrangements) of the digits 1, 2 and 3. We will say that a hit has been scored if at least one digit occurs in its proper position in the permutation, i.e. if 1 occurs in the first position, or 2 in the second position, or 3 in the third position. In how many of these permutations is a hit scored? If a month is having four Sundays then what is the first day of the next month?
If month has 28 days i.e. 4 complete weeks: The month could start on any day, there will be exactly 4 Sundays. Thus, the month could end on any weekday. And the first day of the next month could be any week-day.
If the month has 29 days i.e. 4 complete weeks and 1 odd day: The month could start on ANY day EXCEPT Sunday (else it will have 5 Sundays). Thus, the next month could star on ANY day EXCEPT Monday.
If the month has 30 days i.e. 4 complete weeks and 2 odd days: The month could start on ANY day EXCEPT Saturday or Sunday (else it will have 5 Sundays). Thus, the next month could start on ANY day EXCEPT Monday or Tuesday.
If the month has 31 days i.e. 4 complete weeks and 3 odd days: The month could start on ANY day EXCEPT Friday, Saturday or Sunday (else it will have 5 Sundays). Thus, the next month could start on ANY day EXCEPT Monday or Tuesday or Wednesday.