← All problemsSign in

Cookie Flavors

For Durga Puja, Ramu has baked **N** cookies, and left them in a row. They are of various flavours, and the flavours of each of the cookies is given by the sequence **C = (c₁, c₂, ..., cₙ)**, where **cᵢ** is the flavour of the **iᵗʰ** cookie. Hanu, is a cookie aficionado and over the ages, has perfected a 'base' sequence of cookie flavours that he prefers to eat in that particular order. It is gi

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