← All problemsSign in

Bake Cake & Crack

Narayan has recently done a course in baking cakes and with the newly learnt skill he has opened a cake shop. He bakes very nice cakes so the number of buyers of cake in his shop is sometimes record breaking. Narayan is given the no. of buyers at his shop on **N** consecutive days. The number of buyers on the **i**-th day is **B**i . A day is record braking if it satisfies both of the following

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