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. StackThe correct data structure for implementing a recursive algorithm iteratively is the Stack. This mimics the call stack behavior used in recursion, allowing…

  1. A.

    Queue

  2. B.

    Stack

  3. C.

    Linked List

  4. 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.

Explore the full course: Niacl Ao It Specialist

Loading lesson…