Question
Consider the following Python code for calculating
Fibonacci numbers using memoization: memo = {} def fib_memo(n): if n return n if n in memo: return memo[n] result = fib_memo(n-1) + fib_memo(n-2) memo[n] = result return result # Call: fib_memo(5) What is the sequence of values stored in memo after fib_memo(5) completes?Solution
The correct answer is A
One of the largest dams of the world, Hirakud Dam, is built across the ______ river.
Which city is called lake city in M.P?
Who among the following was India's defence minister during the 1971 war between India and Pakistan?
Which of the following government departments is associated with infrastructure development in India?
Government of India under “Waste to Wealth” Mission launched which of the following fellowship?
Consider the following statements with reference to sanitation in Budget 2020.
1. ₹ 3.6 lakh crore were allocated for Jal Jeevan Mission.
...In which of the following sections of the Punjab Reorganisation Act, 1966 is Chandigarh defined as a Union Territory?
In which state is the famous Kamakhya Temple situated?
Which of the following states of India will host the 2023 Men's Hockey World Cup?
Who was the first female Indian wrestler to win Gold at the Commonwealth Games?