Ad
  • Custom User Avatar

    Looks good to me.

  • Custom User Avatar

    I'll never forget now ;)

  • 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

    alright thank you! I will look into it, issue resolved then.

  • 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

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

  • 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

    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!

  • 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

    Also, if you wouldn't mind looking at the issue that Isnn is having.

  • Custom User Avatar

    Unfortunately it still says it expects an empty string for all random tests

  • Custom User Avatar

    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).

  • 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?

  • Loading more items...