Recursion — Study Resources & PYQs
Recursive functions and recursive problem solving.
- Estimated study time: 30 minutes
Study resources
- C Recursion - GeeksforGeeks (Article) — Explains base case and recursive case, then shows the call stack building up and unwinding with printed stack-frame messages. The stack-frame trace is what makes recursion finally make sense.
- C Programming - Neso Academy (functions and recursion) (Video) — Use the functions and recursion videos in this playlist. Seeing someone trace a recursive call on a whiteboard is far more useful than reading the code.
- NPTEL - Problem Solving Through Programming in C (functions weeks) (Article) — Teaches functions as a way to decompose a problem rather than just as syntax. That framing matters more than the syntax and is what the course objective explicitly targets.
- Application of stacks: recursion, Tower of Hanoi (video) (Video) — Explains how the call stack supports recursion, then applies that idea to solve the Tower of Hanoi problem recursively.
- Recursion in Python (Article) — Explains recursion concept, base case, recursive case, factorial example, Fibonacci, and common recursion mistakes.
- Python Recursion (Article) — Explains recursive functions in Python with worked examples such as factorial calculation.
- Break & Continue (Article) — Explains break (exits loop) and continue (skips iteration) with for and while loops using clear code examples.
Recursion previous year questions
- a) Write a recursive function to find the factorial of a number and compare the recursive method to find the factorial of a number with that of an iterative me…
- (a) What is structure ? Write a program to illustrate the concept of structure and how member variables are accessed. (10) (b) Write a program to print Fibonac…
- (a) Write a program that computes the sum of following series: $x - x^3/3! + x^5/5! - x^7/7! + .........$ to n terms. The value of 'x' and 'n' is to be given b…
- Distinguish between recursion and iteration. Explain the advantages and disadvantages of using the recursive formulation of the algorithm compared to non-recur…
Taught in these subjects
- COMPUTER PROGRAMMING — BCST11 · Government College of Engineering and Technology, Jammu
- COMPUTER PROGRAMMING — BCST11 · Government College of Engineering and Technology, Jammu
- Computer Programming — BCST11 · Government College of Engineering and Technology, Jammu
- Computer Programming — CST3101 · Government College of Engineering and Technology, Jammu
- COMPUTER PROGRAMMING — CST3101 · Government College of Engineering and Technology, Jammu
- COMPUTER PROGRAMMING — CST3101 · Government College of Engineering and Technology, Jammu
- Data Structures — CST3401 · Government College of Engineering and Technology, Jammu
- Python Programming — CSO-3505 · Government College of Engineering and Technology, Jammu
- Python Programming — CSO-3505 · Government College of Engineering and Technology, Jammu