Frog Puddle
CodeChefOpen on judge ↗
You are a frog that lives in a rainforest surrounded by swamps and puddles. All of your friends notice a giant snake lurking by the lake, and you are given the task to guide your friends to the nearest lake. Unfortunately, the rain has made things worse. The path to the nearest lake is filled with holes that end up in mushy soil which can trap you and your friends. The group decides to jump
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