InterviewDB
Question
Socks Problem: Find the Minimum Number of Days to Guarantee a Matching Pair from a Drawer
phone
Question Details
Problem A drawer contains socks of k different colors. You draw socks one at a time in the dark. How many socks must you draw to guarantee at least one matching pair, regardless of the order drawn? Generalize: how many to guarantee m matching pairs?…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
Onsite
Phone