Chef goes Diwali Shopping
CodeChefOpen on judge ↗
Chef is at a Mall and is in the mood to do a lot of shopping for Diwali. He needs to by sweets, clothes and gifts. There a N different shops in the mall. Each shop contains all these items but at different prices. Now Chef has a strategy that he wont buy the same item from the current shop if he had already brought that item from the shop adjacent to the current shop.He needs to buy one of the th
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