← All problemsSign in

Akka Shop

Alice is an undergrad from Chandigarh University. She is a very rich girl. She has N types of coins, and each type of coin is available with an unlimited supply. So Alice goes to All Mart to buy monthly groceries. There she sees that every item has a unique price, that is, no two items have the same price. Now, the All Mart owner tells Alice that they are selling items in the price range [L,

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