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.
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 :-)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
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 :-)
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.
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 :-)
Wow I love this solution. So simple, concise and clear.
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). :-)
This comment is hidden because it contains spoiler information about the solution
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.
Well played OP, well played :-)
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.
This comment is hidden because it contains spoiler information about the solution