Debug a Journey Counting Implementation
You are given an existing JavaScript implementation and its unit tests. At least one test is failing.
Tasks:
- Read the code and tests
- Identify why the test fails
- Fix the code so that all tests p...
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:
