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.
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
1
toSIZE_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.
Fixed.
ðŸ˜
Approved with some adjustments after 9 years :-)
Seems like this note was already removed from description some time ago.
Thanks! Yeah, I lately can't be bothered too much about the includes, the linker solves it, but you're right.
You're right, random tests can generate 0 for every variable in TS. This seems to have been fixed for JS, but not TS :/ You should raise a new issue about this.
Edit: updated TS random tests to be in line with other languages (no more zeros :P)
I have done this today and am still getting random test cases with both speeds as 0 (in TypeScript)
Loading more items...