Ad
  • Default User Avatar

    Hi Chrono79. I pasted the the solution that passes about 10 tests before getting that weird NoMethod error above if you want to replicate. Thank you :-)

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    I got that twoSum error too with Ruby. I've printed it out below. Mine passed about 8 tests before failing this one.

    main.rb:37:in rescue in block (2 levels) in <main>': undefined method twoSum' for main:Object (NoMethodError)
    Did you mean? two_sum

    Part of me wonders if a test has twoSum as one of the method calls most likely me that's made the mistake though :-)

  • Default User Avatar

    Thanks for this. Really enjoyed it. It was tricky to work out intially how to solve it. Loved the many different solution types people had. Great.

  • Default User Avatar

    Oh wow. Such a creative way of solving this. Very nice indeed.
    It took a while until I realised the alphabet was extended. I'll definitely steal this :-)

  • Default User Avatar

    Wow I love this solution. So simple, concise and clear.

  • Default User Avatar

    Oh sorry. Yeah it's my fault. I got confused with the layout quite a bit and didn't realise my printing of the input location would affect things so much.
    Passed now. Thanks for such a quick reply (I've seen exercises with reply times in the years lol). :-)

  • Default User Avatar

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

  • Default User Avatar

    Thanks for this reply.
    I would not have been able to solve this without this hint. The colinear stuff in the description made literally no sense to me.

    It might be cool to add a bit more of a hint (or even the above links to the description) to help the people with shaky math know at least where to look.

    Great challenge.

  • Default User Avatar

    Well played OP, well played :-)

  • Default User Avatar

    Found this kata a lot of fun even though it was a bit fiddly to get personally.
    Learned a lot from this thanks for creating it.

  • Default User Avatar

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