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.
Looks good to me.
I'll never forget now ;)
Haha, I think i'll leave Ruby to you ;-).
@Shivo: Wow! Now you could translate yourself your katas into Ruby! Good work:-) I marked your lsnn's solution as spoiler.
@lsnn: fine solution but don't forget in the future to do a copy before working in place:-)
This comment is hidden because it contains spoiler information about the solution
alright thank you! I will look into it, issue resolved then.
Yes, your solution modify
n
in your function but also in the function reference (the "solution") since your solution and the reference solution work on the same data... It's bad practice to modify a parameter in place:-( At least, if you want to modify in place, modify a copy of the parameter.This comment is hidden because it contains spoiler information about the solution
I just tried a few solutions and it works. Can you tell if it works for you? If it works could you mark the issue as resolved?
I tried solutions of other guys, it works. I suppose that I forgot to add the suffix to the recursive call in the random tests. Bad copy-paste. Sorry for that: my bad!
Alright, I'll get @g964 to look at it. Just to let you know though, there have been many solutions that have passed in ruby, so the empty string is most likely just a visual issue.
Also, if you wouldn't mind looking at the issue that Isnn is having.
Unfortunately it still says it expects an empty string for all random tests
I changed the random section of the ruby translation. I believe it was unintentionally calling the user's solution instead of recursively calling itself. If you could double check the edit to make sure that it was actually an issue, I'd appreciate it(I have 0 experience in ruby).
Alright, I'm not the best with ruby, but I did find an issue with the translation. I'm not sure if it will help your issue, but could you try again?
Loading more items...