Socks Puzzle-Puzzle for Interview rounds.


There are 10 black socks and 10 white socks in a drawer. Now you have to go out wearing your shoes.

So how many maximum number of times do you need to remove the sock from the drawer so that you can go out?

You can remove only 1 sock at a time.

You can’t look at the drawer while removing the socks.

Solution: 3

The worst case is when the socks from the first 2 pick do not match. However, in the third pick, since there are only 2 colors, the sock will match one of the socks already with me. 

This is also widely known as the "Pigeon Hole Principle".

Thanks for Reading

Placewit grows the best engineers by providing an interactive classroom experience and by helping them develop their skills and get placed in amazing companies.

Learn more at Placewit. Follow us on Instagram and Facebook for daily learning.




Upskilling students for tech placements!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

That’s a ‘Them’ Problem: Coming To Terms With The Fact That You’re Doing Everything Right: Chapter…

Injection for Anesthesia — Puzzle for Interview rounds

Publicist Josh Nass: “Demonstrate that you truly care to create a fantastic work culture”

Weeknotes s01e22

Is There An Elephant In The Room?

The World of Work Part II: What Will the Future of Work Look Like?

A Sniff of Life in Lagos (11)

Coronavirus Occupation Misfortunes Put Ladies’ Monetary Security In danger :

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Upskilling students for tech placements!

More from Medium

One Mile on the globe Puzzle

Koko Eating Bananas

PhonePe Interview Experience — Full-time SDE Role 2022 (On-Campus)

Gainsight Interview Experience: