• ###### bucholskicommented on "Welcome!" rust solution

how is this the "best practices". I so don't get people on codewars...

• ###### joem91commented on "Switch it Up!" rust solution

It should panic, according to the description that's an invalid input.

• ###### salsadipomodorocommented on "Switch it Up!" rust solution

If you enter 11 the code will panic. I don't think this is a "best practice."

• ###### Smeddycommented on "Grasshopper - Messi Goals" rust solution

Great calculations! Awesome))

• ###### Funkicommented on "Is n divisible by x and y?" rust solution

Would you mind to elaborate? It's almost the same solution in C.

• ###### saladuitcommented on "Is n divisible by x and y?" rust solution

I find it very funny that I'm always overthinking things having a C background, does anyone have any tips?

• ###### akar-0commented on "Grasshopper - Summation" rust solution

The reason is people voted it.

• ###### saladuitcommented on "Grasshopper - Summation" rust solution

Is there a particular reason why this is a good practice?

• ###### chapeupretocommented on "Is he gonna survive?" rust solution

True, but test passes! :D

• ###### Minoru-kuncommented on "Is he gonna survive?" rust solution

True. Although probably not important for the 8th kyu. Thanks :)

• ###### AnthonyMikhcommented on "Is he gonna survive?" rust solution

This solution mught give incorrect result in case multiplication overflows

• ###### Chrono79commented on "Tidy Number (Special Numbers Series #9)" rust solution

Use spoiler flag next time, please.

• ###### chapeupretocommented on "Tidy Number (Special Numbers Series #9)" rust solution

This comment is hidden because it contains spoiler information about the solution

Thanks)

• ###### imjasonmillercommented on "Filling an array (part 1)" rust solution

It collects the range `0` to `n` (exclusive) in its `return` type, a `Vec<u32>`.

Here's a more explicit example:

``````return (0..n as u32).collect::<Vec<u32>>();
``````