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.
should be fixed
fixed
Oops! Thanks for noticing, I checked if the spin is random and forgot to check the rest two.
The function has side effect so I added () to it and it seems to be working now.
Should be fixed after migration to Node 18.
You are right, I should always use the variable
slowto move one step, rather than usingfastfor a different purpose.Fixed some time ago in this fork
i resolved the ambiguity by adding the following comment in the C initial code:
duplicate of this issue
Thank you for the response, sorry about that that's my first translation :)
I Removed comments and replace the placements.
I think Unnamed's explanation makes sense, though it is doubtful that one would ever need an array of all the integers from
1toSIZE_MAX. But in any case it's too late to change the prototype now after so many completions. The function's contract has two much more serious flaws: allocating a heap array whereas the length is known in advance and an output parameter would be more idiomatic; and the completely redundant reporting of the length from inside the function. This is essentially an old, legacy C kata.raised there as an issue
My main concern is with overloading the console output. It goes against the submission test guidelines.
A fair compromise would be to revert the behavior of the submission tests while still printing the visualizations for the sample tests.
Done.
Done in this fork
Fixed.
Loading more items...