← All problemsSign in

Shambhavi Likes Shopping

Shambhavi is one of Chef's bestfriends. Being a good friend, Chef knows Shambhavi likes shopping too much. Chef recently came with a tricky situation while taking Shambhavi for shopping. He needs your help to solve this. There are 4 shops where Shambhavi needs to go for shopping. These 4 shops are forming a square. Here, a side of that square depicts the road from one shop to another and Chef kno

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