Analytical Perspective
There are quite a few posts on the cloud categorized as 'Brainteasers' and here is the one I prefer throwing to an extremely promising candidate (Senior Developer, Architect) during my technical interview. Situation 1 : In a drawer, there are 5 Gray socks and 5 Black socks. What is the least (optimal) number of socks one has to draw (blind-folded) from this drawer which would gurantee a wearable (same color, in case you are wondering what the heck is 'wearable') pair of socks? Perspective: If one draws all the socks, in other words, 10 - that would gurantee a wearable pair of socks - but that would be an overkill, won't it? Remember, we are looking for the optimal number of socks. So, continuing further, let's bring down the number of socks, to draw, to 5. That would give the following possibilites.. One Color Another Color 5 ...