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.
how is this the "best practices". I so don't get people on codewars...
It should panic, according to the description that's an invalid input.
If you enter 11 the code will panic. I don't think this is a "best practice."
Great calculations! Awesome))
Would you mind to elaborate? It's almost the same solution in C.
I find it very funny that I'm always overthinking things having a C background, does anyone have any tips?
The reason is people voted it.
Is there a particular reason why this is a good practice?
True, but test passes! :D
True. Although probably not important for the 8th kyu. Thanks :)
This solution mught give incorrect result in case multiplication overflows
Use spoiler flag next time, please.
This comment is hidden because it contains spoiler information about the solution
Thanks)
It collects the range
0
ton
(exclusive) in itsreturn
type, aVec<u32>
.Here's a more explicit example:
Does that answer your question?
Loading more items...