Question
Which data structure is most suitable for implementing
recursion?Solution
A stack is the most suitable data structure for implementing recursion. This is because recursive calls need to store the state of the current function execution before jumping into the next function call. Stacks follow the Last In, First Out (LIFO) principle, which perfectly suits the recursive function call structure. Why Other Options are Wrong: b) A queue follows First In, First Out (FIFO), which doesn’t support the nature of recursion. c) Linked lists can be used for dynamic memory but are not suitable for managing function calls in recursion. d) Arrays have a fixed size and do not inherently support LIFO behavior. e) Hash tables are for storing key-value pairs and have no role in recursion.
Buying of milk is an example of:
All of the following curves are U-shaped except:Â
A market structure where there is a single dominant buyer that has significant market power, often leading to the ability to dictate terms to suppliers,...
The most critical stage for water for potato crop is:
Inflorescence of sugarcane is known as?
An individual with two identical alleles for a given trait is said to be:
Strigolactone is synthesized from
ATIC is component of
Match List-I with List-II
Choose the correct answer fr...
Scientific name of potato is:Â