← All problemsSign in

Water State (Debug)

$NOTE :$ This is a "Debug The Code" question. You need to debug the code given in the link above. Do not change the fundamentals of the code. You only have to tweak it here and there to make it error free. It should finally pass all the test cases. If you change it beyond a threshold, you shall lose some portion of the marks, in accordance with how much you changed it. Find the link to the C++ 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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start