Socks of Justification: Algorithm

Welcome, contestant!

Today, you'll be competing in the 7.3 Sock Sorting Tournament, where the stakes are high and the socks are higher.

Rules

There are three rounds:

R1: Sock Sorting by Color

R2: Sock Sorting by Material

R3: Sock Sorting by Pattern

Each round will consist of 10 minutes of intense sock sorting, after which, you will submit your sorted sock pile for judging.

The contestant with the most correctly sorted socks will be declared the winner.

Good luck! May the odds be ever in your favor!

<img src="socks.jpg" alt="A pile of socks in different colors and patterns">

</div>