Which data structure is best suited for implementing a recursive algorithm…
2026
Which data structure is best suited for implementing a recursive algorithm iteratively ?
- A.
Queue
- B.
Stack
- C.
Linked List
- D.
Hash Table
Attempted by 174 students.
Show answer & explanation
Correct answer: B
The correct data structure for implementing a recursive algorithm iteratively is the Stack. This mimics the call stack behavior used in recursion, allowing manual management of function calls and return addresses.