I searched for the "right way" to explain this algorithm, and ultimately parsing the code was the clearest for me. This isn't always true; sometimes a graph or an interactive module has more impact; it really depends on the topic. Thanks for the feedback.
Kudos! Minor detail: the code could use a border or bg color different than the text, so that they’re more distinct.