Debug a Given Program (fix a single bug without changing structure)
Problem: Debugging (fix exactly one bug)
You are given a working program plus a set of tests, but exactly one bug exists that makes at least one test fail.
Requirements:
- You may modify the ...
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
