1. Gyanastra
  2. Data Structures
  3. Recursion and the Call Stack

Data Structures

Recursion and the Call Stack: lessons and notes

8 lessons on recursion and the call stack for GATE CSE, ISRO and UGC NET. Read the first two lessons free, right here; the rest of the chapter is for signed-in learners. Each lesson shows the exam years that asked it and ends with practice questions.

8 lessons1 simulator
  1. 1
    Tracing Recursion with the Stack and Activation Records4 min read · Asked in past papers: GATE 2026, 2025, 2024, 2020, 2018, 2017, 2016, 2015, 2014, 2013, 2008, 2007, 2004, 1999; ISRO 2020, 2018, 2017, 2011, 2008, 2007; UGC NET 2020, 2018, 2017, 2016, 2015, 2014, 2013, 2009, 2007.
    Read free
  2. 2
    Instruction Pointer and Resuming After a Recursive Call7 min read · Asked in past papers: GATE 2017; UGC NET 2017.
    Read free
  3. 3
    Tracing Recursion with the Tree Method6 min read · Asked in past papers: GATE 2011; UGC NET 2013.
    Free account
  4. 4
    Tree Method for a Function with Printf Before and After the Recursive Call5 min read · Asked in past papers: GATE 2024, 2017; ISRO 2007; UGC NET 2018.
    Free account
  5. 5
    Tree Method for Two Recursive Calls with Printf in Between7 min read · Asked in past papers: GATE 2015, 2002, 2001.
    Pass
  6. 6
    Counting Function Calls and Time Complexity of a Recursive Function4 min read · Asked in past papers: GATE 2026, 2021, 2018, 2016, 2014, 2007, 2005, 2004, 1999, 1997, 1994, 1991; ISRO 2020, 2015, 2014; UGC NET 2015, 2013, 2011.
    Pass
  7. 7
    Forming and Solving the Recurrence Relation by Back Substitution7 min read · Asked in past papers: GATE 2026; ISRO 2020; UGC NET 2020, 2018, 2017.
    Pass
  8. 8Pass