Recursion: Key Parts
Recursion: Key Parts
Advanced Recursion
Luke Skywalker wasn't ready to face Lord Voldemort after his first week at Camp Half-Blood. It takes him an entire school year instead. He had to train and practice and sweat (and bleed a little t...
Head vs. Tail Recursion
Generally speaking, recursion can come in two flavors: head recursion and tail recursion.No, it's not watching a dog run around in circles until its head touches its tail. We have to admit that it...
The Limits of Recursion
Is anything (or anyone) truly limitless? Sure, if we used all 100% of our brains, we might be able to write code one-handed (apparently), but even then you don't get superhuman-strength or anything...
When to Use Recursion Instead of a Loop
Recursion is the code equivalent of a fancy parlor trick. First you have this top hat, then you wave your (code) hands around mysteriously, and all of the sudden a chinchilla appears. Sure, you cou...