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.
Where a minor has entered into a contract for purchase of necessary items. In such cases:Â
The case of Pickard v. Sears is related
What does the term "Government Pleader" include as per CPC?
What is the full form of RTI in law?
Risk management is a process that includes
Law of Evidence is _____________________
Under Article 13 of the Constitution of India, the State is prohibited from making laws that:
An agreement enforceable by law is _________________
In which of the following cases can the principle of natural justice be excluded?
The Doctrine of ‘Res Gestae’ has been incorporated in which of the following Section of the Evidence Act?