Chef and Shopping
CodeChefOpen on judge ↗
Chef is in super market and in a mood to do a lot of shopping. he needs to buy shirts, pants and shoes for herself and her family. There are N different shops. Each shop contains all these three items but at different prices. Now Chef has a strategy that he won't buy the same item from the current shop if he had already bought that item from the shop adjacent to the current shop. Now Chef is co
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