Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
In rust, I honestly don't know how I could make my code any more efficient, it runs in 1362ms on the test case. This is pretty quick and usually is enough to pass the larger tests, is there some super quick algorithm I'm supposed to be using?
This comment is hidden because it contains spoiler information about the solution
Javascript implementation:
"For n = 2003 the output should be 1461." how can the answer be 1461 if it always skips 4?
The same goes for the following test situations, all of these answers contain a 4... or am I missing something?
Test.assertEquals(faultyOdometer(55),40)
Test.assertEquals(faultyOdometer(2005),1462)
Test.assertEquals(faultyOdometer(999999),531440)
Test.assertEquals(faultyOdometer(2005),1462)
This just blew my mind.
I don't really understand the question and the test cases are not helpful.