Tier 41.0 h to studyMedium confidenceEasyabout 0.4 questions1.1% of marks
P2 — Recursion — Trace, Base Case, Accumulation
This lesson is part of full access
One payment of ₹250 opens every lesson, practice set and mock for all five companies. No subscription, no expiry.
What is inside
- 1. Why this topic matters here
- 2. Exactly what gets asked
- 3. Concept notes
- 1. factorial(5) = 120
- 2. fibonacci(5) = 5, call tree and call count
- 3. Sum of first n natural numbers: n + f(n-1), n = 5 → 15
- 4. Reverse a string
- 5. power(2,5) = 32