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.
Hi. It seems there are at least two problems currently, the reference solution throws this:
There is a problem with
preloaded
(I cannot help about that, I don't know how to use it in Rust).The bug related to
rng.gen_range
can be due to a problem with language updates. You should update the kata to Rust 1.60 and make some fixes.Using Ruby.
The the
Node
class is not in the description.When running "Test", I get an unexpected error:
Even when I tried with a very simple solution that's wrong but should not "break":
Looks like those have 100 random tests, with a smaller average size but more variability. My translation has been updated similarly.
Can you take a look at C or C++ tests then?
Added those testcases. Also, there are only two random tests, I just copied Java's tests.
1 -> 2 -> 3 -> 4 -> 1
1 -> 2 -> 3 -> 4 -> 4
1 -> 1
Rust translation ready for review. Fyi, I used the arena pattern because not leaking memory in reference cycles is really hard in a non garbage collected language.
Approved! ;)
Rust translation ready for review