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
.
Tests are limited to within
Int
range, which is specified to be at least 29 bits IIRC.Because outside of a very narrow set of high performace situations, it doesn't matter at all. Even the cheapest embedded computer can do this in nanoseconds. And treating it like strings is more intuitive since the problem cares about them more like strings than numbers.
Currently it works fine.
Fixed
Not an issue: typos are suggestions.
Same :D
This comment is hidden because it contains spoiler information about the solution
Yes, you are right!
I benchmarked this solution and your solution with
valgrind
, found:cargo build --release
generate_shape(50)
True; that'd be a little more robust.
That's completely false.
However, you are right about the non-ASCII first letters.
With something like
.unwrap_or(String::new())
?
I prefer match for readability and because it scales better for more cases so my default style is to use it. I agree that, for this case, 'if' would be fine.
Loading more items...