← All problemsSign in

Fibo Game

Ratnadeep and Samyak loves Fibonacci series a lot. One day they were playing with an array of Fibonacci numbers. Their friend Suhavan came there and gave them a query to perform the operation which can be described by the pseudo code given below: In the code above GetFib(n) function returns nth Fibonacci number. For example GetFib(3) will return 2. Input: First line of input will be number of q

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start