Wierd Fibonacci
CodeChefOpen on judge ↗
In order to celebrate Women's day, Stella started playing with the Fibonacci series and wanted to make her own version of it, the Wierd Fibonacci series. Given a normal Fibonacci series upto $N$, i.e., A1, A2, A3, ..., AN-1, AN. The resulting Weird Fibonacci Sequence from above sequence is A1, AN, A2, AN-1, ..., AN/2. For a given $N$, print the first $M$ numbers for this series. As
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.
Sign in to chat with the tutor and save your progress.
Sign in to start