factual

Recursion Finally Clicks With the Right Problem

Recursion can feel impossible to grasp when only taught via factorial or Fibonacci (which seem like complicated for-loops), but it clicks when you encounter a problem that genuinely requires it—like pathfinding through an unknown maze—revealing you understood it all along but lacked a fitting problem.

factualpending

Speaker

ThePrimeagen

Evidence Quote

“always my big problem was like, "Okay, do factorial." Why not just use a for loop?... And then lab came that day and it was... "I want you to find me a path through the maze."”

Source

Theprimeagen— Lex Fridman Podcast
Created: 6/13/2026, 3:36:30 AM

Your notes

Loading notes...