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.
Cool!
Just wanted to point it out, since it was the most upvoted solution.
Yes, but it's 8 kyu. You can't expect questions on data size limits on 8 kyu.
Probably there should be something like n <= 1_000_000_000 in the description to avoid ambiguity.
Panics!
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a63ebb85f52e1417236a6dcb40bd6bb5
This one is fun :)
I would go for this solution. It's very compact, readable and doesn't need any extra imports.
Neat!
I don't understand... why this solution is not at the very top? It's the best!