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.
Log
'a'
... last argument - Expected: 'b', instead got: 'a'
what's wrong? The input log is 'a', and the expected output is 'b'?
nice
This comment is hidden because it contains spoiler information about the solution
Can this be moved to Kyu 7?
Can this be moved to Kyu 7?
The timed out error occurs because the code has an infinite loop. The line n = n//2 is outside the while loop, so it never gets executed. This means the value of n never changes inside the loop, causing the loop to run indefinitely.
You did not break the loop (early exit) before halting on further incrementing the result.
Approved by someone
Java Translation
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Lua translation!
This comment is hidden because it contains spoiler information about the solution
You need to return the result, not print it.
This comment is hidden because it contains spoiler information about the solution
Loading more items...