HAPPY HOLI (SET II)
CodeChefOpen on judge ↗
Leonardo of Pisa goes out on the day "HOLI" wearing a checked shirt. After having a good time he returns with colors all over his shirt. And now he applies the his concept of Fibonacci here as well. You know how Genius men were. He cuts his shirt int a M*M checks, such that M is of the form 2N. Each check on his shirt has got a single color (Exactly one). The jth check on the ith row has got the
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