← All problemsSign in

Fibonacci Fever

Little Timmy is a very naughty kid, he always scribbles an array $A$ of which each element is one of the given five $fibonacci$ $numbers$ which he learnt about in school - $1,2,3,5,8$ on the walls of his home. His father was getting tired of his antics and decided to buy a special machine. This machine completely wipes out the array Timmy scribbled provided that it is good. The machine is programm

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