WANDERLUST CHEF
CodeChefOpen on judge ↗
Wanderlust Chef is stuck at some Island in $Wonderland$. $Wonderland$ consist of many Island connected or surrounded by water. Chef is starving and wants to eat. Chef can't find anything to eat there so he decided to swim to some other island. Unfortunately chef doesn't know on which island currently he is. So chef can arbitrarily choose on which island he is. By some magical intuition he came to
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