this is a nifty, concise little piece of code. join() takes the elements of the integer array and makes them a string, then to_i() takes that string and converts it to binary (based on the arg 2). done. I saw your question and solved this in ruby using a version of my C code just so I could see what you were asking about... so clearly this solution shows what you can do when you really know the language
I am new to coding in general. I was able to successfully complete this challenge, though it seems to be done in a long winded way. Can someone explain how this is working?
I think that the point of this kata is try to resolve it without using these functions.
calling query.lower() in each iteration is not efficient.
Can't be changed.
I think this Kata should be a Kyu 6 or maybe Kyu 5. In comparison to other Kyu 7 Katas it is costly.
I get an error when submitting this code- anyone know why?
Nice work on the polymorphism!
This is absolutely simple.
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
Thats great! I didnt expect you to respond since my reply was so late :)
how does the last one works (s6)? i can clearly see it working on a simpler example, but i don't get why it returns the corresponding integer