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 mean by separate chaining?

0 Answers  


Explain the common uses of tree database.

0 Answers  


Describe linear probing with an example.

0 Answers  


Does treeset remove duplicates?

0 Answers  


Can we store primitives in collections?

0 Answers  


What is a data structure definition?

0 Answers  


Explain implementation of deletion from a binary tree.

0 Answers  


What is a bubble sort and how do you perform it?

0 Answers  


What is complexity algorithm?

0 Answers  


Explain about circular linked list?

0 Answers  


Why is sorting and classifying important?

0 Answers  


What is the bucket size, when the overlapping and collision occur at same time?

1 Answers  


Categories