ā” Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 19m 32s17 days 22 hours 19 minutes 32 seconds.
ā” Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 19m 32s17 days 22 hours 19 minutes 32 seconds.

Sign in to watch this lesson
Advanced - Combinatorics, Games and Puzzles Ā· 4:52
Two ways to list every K-subset of N items. The dictionary order steps from one combination to the next by bumping the rightmost slot that is still below its ceiling and refilling everything after it, while the revolving-door order, read off the Gray codes with exactly K ones, changes one member at a time. We see why the reflection behind the Gray code keeps every step to a single swap, build that order directly with a recursion instead of filtering 2^N codes, and time both on a Mac.