Start learning 50% faster. Sign in now
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.
Which of the following provisions of the Constitution reveal the secular character of the Indian State?
1. Preamble
2. Directive Principle...
Which article can not be suspended even during the Emergency ?
Which session of the Indian National Congress was declared Poorna Swaraj or complete independence as its goal in 1929?
Who presided over the Indian National Congress session held in Belgaum (now Belagavi) in 1924?
Which statement about Ordinary bills in the Indian Parliament is INCORRECT?
As per the recently notified Citizenship (Amendment) Rules, 2024 by the Government of India, which date is the cutoff for migrants to be eligible for In...
What does Article 103 of the Indian Constitution concern?
The Office of Lokayukta was first established in the Indian state of
Which Five-Year Plan in India emphasized the development of the industrial base?
The term 'Cytokine storm' recently seen in news is related to: