Question
calculate the complexity of the below recursive
code Int f(int n) { If(n return 1; return f(n/2)+f(n/2); }Solution
Here the function is recursively calling on f(n/2) twice and also one line for the condition when n=0. Hence 1 is the correct choice.
The Ministry of Tourism launched a new initiative called “Heritage Bharat”. Its primary aim is:Â
Which city leads the funding in the Indian fintech sector according to the report?
What major international economic ranking is India projected to achieve by 2025 according to the IMF?
What significant achievement was made by the Indian Army in Eastern Ladakh in terms of infrastructure development?
Which Indian Navy ship was part of the La Perouse naval exercise in January 2025?
On which date is Constitution Day commemorated?
India and Israel signed Terms of Reference (ToR) to begin negotiations for which type of agreement?Â
- What is the minimum age set by the RBI for a minor to independently operate a savings or term deposit account?
ADB has slashed the economic growth forecast for India for 2023-24 (FY24) by 80 bps to ___________.
What is the daily production capacity of the newly inaugurated biomass pellet plant in Rewari, Haryana? Â