English

What data structure would you most likely see in a non-recursive implementation of a recursive algorithm?

Advertisements
Advertisements

Question

What data structure would you most likely see in a non-recursive implementation of a recursive algorithm?

Options

  • Linked List

  • Stack

  • Queue

  • Tree

MCQ
Advertisements

Solution

Stack

Explanation - 

In the majority of programming languages, recursion is implemented via stacks.

shaalaa.com
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×