As an example:
You can have 10 instances of "Apple"
You cannot have "Apple" instances of 10
Basically * is a method, which has to take in a number. It cannot perform it's function with a string.
Very nice solution... the downside is that you need the double of memory for this.
this is not necessary: n >= 5 &&
@GiacomoSorbi could you fix this?
I think that's the expeted behavior... Hello, ! lol
hello " spacebar " ---> Hello, !
Best practices ?:))
This comment is hidden because it contains spoiler information about the solution
no hate, just love. Nice solution
Thank you, phaul, for the explanation, that is very interesting!
Updated Rust to 1.33
It does not match with "nowork1234nowork" or something similar. You are tending to mislead people. Who tries the code will see that it is working anyway.
Only problem is that redundant import.
It is the best way i saw by this far.
Need to update kata to Rust 1.25. See: https://github.com/Codewars/codewars-runner-cli/issues/690#issuecomment-461599685
You never have to specify the variable type if you're returning - the type is already specified in the function's signature.