← Back

Recursion Pattern Problems

Recursive printing or generation of symmetric patterns.

recursionpatternsUpdated 2025-09-01

Idea

  • Defer printing to unwind for reverse order

Example

  • print(n){ if(n==0)return; print(n-1); print line n; }