Which data structure is best suited for implementing a recursive algorithm…
2026
Which data structure is best suited for implementing a recursive algorithm iteratively ?
Answer: B. Stack — The correct data structure for implementing a recursive algorithm iteratively is the Stack. This mimics the call stack behavior used in recursion, allowing…
- A.
Queue
- B.
Stack
- C.
Linked List
- D.
Hash Table
Attempted by 758 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.
Loading lesson…