Which data structure is best suited for implementing recursion?
18 views
- Queue
- Stack (Correct Answer)
- Tree
- Graph
Explanation
Recursion uses the call stack to manage function calls. Each recursive call is pushed onto the stack and popped after execution, making stack the underlying data structure for recursion.