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.
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
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.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?
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.
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?
What language was this in?