Sock Matching Algorithm Game
Sock Matching Algorithm Game
Learn about algorithm complexity through the classic sock matching problem! Use different strategies to match pairs while minimizing memory usage.
Select Difficulty
easy
12 socks, 6 unique pairs - Perfect for learning the basics
12 socks6 pairs
medium
20 socks, 10 unique pairs - A moderate challenge
20 socks10 pairs
hard
30 socks, 15 unique pairs - Test your memory and strategy
30 socks12 pairs
expert
40 socks, 20 unique pairs - For algorithm masters
40 socks15 pairs
How to Play:
- • Pick up socks from the pile one at a time
- • Create slots to temporarily store socks (-1 point per slot)
- • Match socks with the same pattern to score points (+10 per match)
- • Socks stack in LIFO order (Last In, First Out)
- • To access a sock underneath, move the socks on top to other slots
- • Try different strategies to maximize your score!