Thanks for feedback on my solution! :)
This comment is hidden because it contains spoiler information about the solution
Thanks, I didn't know about it!
You can promote your translation on discord --> https://discord.gg/mSwJWRvkHA or raise it as a suggestion so PU's can review and approve much faster ~~
If someone could approve my Rust translation that'd be great!
I'm sure this solution works for all the test cases, but what if another data type such as array, hash or boolean was passed to this function? Didn't the problem specifically ask for an error message in response to a string?
First I've tried this but it doesn't pass anymore on current tests (we get a stack overflow, see my comment in discussion)...
Updated some time ago
best pretty and smart solution!)
spoiler flag, plz...
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 &&