dboc9a
Last Updated: April 04, 2019
·
75
· jg2019

Recursion is so fundamental because...

Recursion is so fundamental because it overlaps with literally every other category of problem that we could get asked:

Linked lists? Print a linked list in reverse order.
Strings? Determine if a string is a palindrome.
Trees and graphs? Have fun doing an iterative DFS.
Dynamic programming? Okay do you get my point? This is all recursive.
If we were to draw out our categories as a Venn diagram, it would look something like this:

Recursion venn diagram

https://www.byte-by-byte.com/recursion