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.
Lang: Rust
So I have noticed after passing the first tests that my println!() prints multiple times in one comp() call.
E.g.:
which is weird. I am pretty sure my solution should work for any given input. Any ideas on why the Vector is printed multiple times? I obviously dont have it in a loop.
Yeah! That kinda structures are very usefull.
Hi! That's part of the learning experience. You can see some tests that your algorithm has to pass. Some tests are hidden. Your code has to work for any given input, you can't simply test every single possible input so you have got to refactor your code so that it works for every possible input.
Thanks for tip
Well yea, no need to say thank you.
This comment is hidden because it contains spoiler information about the solution
It is a fun kata but easier than some 4kyu ones.
I tried a lot of different solutions until I made my wonky solution work. I feel so bad after seeing the solutions. Should learn what a stack is I guess.