← All problemsSign in

FIBONACCI INDEX

WAP which will take an array of integers as input and print the array which have index in [fibonacci](https://www.google.com/search?q=fibonacci+number) order. ###Input: - First line consists N of size of array. - Each of the next N lines contain an integer X. ###Output: Print each unique number in each line. ###Constraints - $1 \leq N < 10^6$ - $1 \leq X < 10^6$ - cosider array index starts

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