Which data structure is best suited for implementing a recursive algorithm…

2026

Which data structure is best suited for implementing a recursive algorithm iteratively ?

  1. A.

    Queue

  2. B.

    Stack

  3. C.

    Linked List

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

Explore the full course: Niacl Ao It Specialist