Learn Recursion with visual DSA lessons
Learn Recursion with 5 DSA patterns and 20 visual lessons. Follow step-by-step animations and synced C#, Python, and Java code.
Recursion asks a smaller version of the same problem for help.
Linear Recursion
Make one smaller recursive call until the base case is reached.
Non-Linear Recursion
Make multiple smaller calls and combine their returned answers.
Divide & Conquer
Split the input, solve each part, then combine the answers.
Recursion on LinkedList/Stack
Handle one node or stack item and recurse on the remaining structure.
Subsequences
For every value, choose to include it or skip it.