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.
This comment is hidden because it contains spoiler information about the solution
missing 1 byte for the NUL terminator, and
ptr
is not nul-terminated after the copyyes
try a different language??
This comment is hidden because it contains spoiler information about the solution
For JS it 7 or lower
Basically fizzbuzz in another format
Because the global var isn't reset between your function calls and keeps its value.
Only because you called your function once only. Call it a second time and you'll see why it doesn't work here.
Agreed!