What is the data structures used to perform recursion?



What is the data structures used to perform recursion?..

Answer / phool chand

Stack. Because of its LIFO (Last In First Out) property it remembers its ‘caller’ so knows whom to return when the function has to return. Recursion makes use of system stack for storing the return addresses of the function calls. Every recursive function has its equivalent iterative (non-recursive) function. Even when such equivalent iterative procedures are written, explicit stack is to be used.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What do you know about different sorting algorithms?

0 Answers   Zomato,


What is a class user?

0 Answers  


Which interfaces are implemented by hashmap?

0 Answers  


What is collections singletonmap?

0 Answers  


What is the logic to reverse the array?

0 Answers  


What is stack and queue in data structure?

0 Answers  


Why do we use collections?

0 Answers  


What is a reverse linked list.

0 Answers   Aspiring Minds,


What do you mean by balanced trees?

0 Answers  


What is dynamic array in excel?

0 Answers  


What are the different types of linked list?

0 Answers  


Write an algorithm through which the inserting and deleting of elements can take place in circular queue?

0 Answers  


Categories