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.
- Minimum isolation distance of foundation seed of hybrid bajra is
Which of the following is the sexual spores of fungi?
The process of removal of undesirable or non-productive animals from herd is called……………………
The double zero type variety belongs to:
Steam engine is an example of
COIR is obtained from the……………………………of Coconut
Panama wilt, caused by Fusarium oxysporum f. sp. cubense is a disease of _____
Which of the following is known as horizon of eluviation?
Who recommends MSP to governenment of india?
Mango Is an example of