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.
@wylaris .. Well , That's Okay , Because of
my_solution(mut lst: Vec<i32>, n_largest_elements: i32) -> i32
, Should Be Updated With the Same Newer Code to match the tests@wylaris..
That test is ok, so the problem should be in your code. Check below, mmacak28's post, where I explained it (somehow) without spoiling it too much.
Chloe is the second but in ascending order.
Maybe you're sorting the list in the wrong order?
Could you provide an example? I don't do Rust, but I can check the expected result with other language and tell you if it's a problem with the rust translation or it is a problem with your code.
@wylaris .. Well , Peyton at the random testing Section this Piece Of Code
for _ in 0..50 { let mut rng = rand::thread_rng(); // Increasing the size of either the number of values in numbers or the range of values // will either result in (sometimes randomly) overloading the main thread and causing a // painic! let numbers: Vec<i32> = (0..10) .map(|_| { rng.gen_range(-10, 10) })
Vector size range: [3, 202)
.,,Element value range: [-100, 100)
@wylaris
@wylaris ..
@wylaris ..
@wylaris...