Ad
  • Custom User Avatar

    Looks good to me.

  • Custom User Avatar

    Haha, I think i'll leave Ruby to you ;-).

  • Custom User Avatar

    @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:-)

  • Custom User Avatar

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

  • Custom User Avatar

    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.

  • Custom User Avatar

    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?

  • Custom User Avatar

    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.

  • Custom User Avatar

    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?

  • Custom User Avatar

    What language was this in?