Question
The Fibonacci sequence (F(n) = F(n-1) + F(n-2)) is a
classic example demonstrating the benefits of Dynamic Programming. Without DP, a naive recursive solution suffers from:Solution
A naive recursive implementation of Fibonacci (e.g., fib(n) = fib(n-1) + fib(n-2)) repeatedly calculates the same Fibonacci numbers. For example, fib(5) calls fib(4) and fib(3). fib(4) then calls fib(3) and fib(2). Notice fib(3) is computed twice. This leads to exponential time complexity due to overlapping subproblems. Dynamic Programming (memoization or tabulation) solves this by storing and reusing computed values.
- A square has an area of 2,500 cm². Find the area of a circle whose radius is (2/5)ᵗʰ of the length of the square’s side. (Take π = 3.14)
In the given diagram, point 'O' represents the center of a circle, while AB and DE are two distinct chords within the circle. The line segment OC is per...
In a circle AB is diameter & C is a point on circumference such that AC = 13 cm & BC = 84 cm then find the area of circle ?
Find the area of a circle whose radius is 7 cm. Take π = 22/7.
A chord is 24 cm long and distance from center is 7 cm. Find radius.
- If the numerical value of the area of a circle is seven times that of its circumference, determine the diameter.
- In a circular field, the area is six times its circumference in terms of numerical value. Calculate the diameter of the field.
A sector of a circle has a central angle of 90°. If the radius of the circle is 10 cm, what is the area of the sector?
Find the length of the direct common tangent of two circles with radii 8 cm and 5 cm respectively, if the distance between their centres is 11 cm.
- What is the area of a circle whose radius is equal to the length of a cube’s edge, if the cube's total surface area is 1,944 cm²? (Take π = 3)