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.
Says published with failed tests but it works every time I run it so idk...
Fixing it now
Yes, you're right I must have had the two confused when I made this. I just fixed it, thanks for letting us know!
For this test case it is expecting the answer to be Matthew but I'm getting Chloe. What is confusing me about this is Matthew is coming out to be the largest in my code.
testing("Elijah,Chloe,Elizabeth,Matthew,Natalie,Jayden", vec![1, 3, 5, 5, 3, 6], 2, "Matthew");
Thank you for your help Chrono79
I don't think the tests in Rust are accurate. I'm fairly certain I have a working solution but I am still failing the tests and the asserts are not making sense.
I assume you mean for the random testing increasing the integer range? I tried to increase the range but anything larger causes intermittent thread overloading for some odd reason. I'm not quite sure why, I can try to increase the size of the Vec but idk if that'll fix it.
There are random tests in there now
Sooooooo it appears that Rust took rand out of std now I'm having a very hard time trying to get it to import.
I think I can go back and edit the tests without having to reject this one. I was overcomplicating things with how to do the random tests (using cargo on my machine). Shouldn't take too long.
I will update things later this evening, had to go to work.
Translation for Rust with tests (excluded random tests as it requires the rand crate). Not sure if I need to update the description for vectors/how to do so without effecting every other langauge's description.
This comment is hidden because it contains spoiler information about the solution
Realzied after submitting that is_prime is not used anymore.
Well I'm not very good at vectors apparently but this at least taught me some of the difficulties that come with them and at the very least how to use the sort. All around pretty good kata.