• ###### zcassinicommented on "The Wide-Mouthed frog! " ruby solution

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

• ###### TheGoldKaycommented on "The Wide-Mouthed frog! " ruby solution

I don't quite get it, can you explain it pretty please?

• ###### zcassinicommented on "Is it a palindrome?" ruby solution

i like that you did that

• ###### Caeser Ibrahimcommented on "Grasshopper - Array Mean" ruby solution

Using the #sum method from Array is many, many times faster than using the alternative, inject or reduce.

• ###### omegahmcommented on "Lost number in number sequence" ruby solution

If the resulting array is empty, calling `first` will yield `nil`, which needs to be converted into `0`. This can be done either by using `to_i` or `|| 0`.

• ###### Funkicommented on "Lost number in number sequence" ruby solution

Why would .to_i be necessary? The array consists of integers only.

• ###### acavallacommented on "Two to One" ruby solution

"Take 2 strings s1 and s2 including only letters from a to z." It's defined in the instructions, so the tests are complete.

• ###### kedlogic@gmail.comcommented on "Two to One" ruby solution

"but still this solution seems to be correct, because task guarantees that only letters will be passed in. solution does not have to check for non-letters."

That is fair I suppose.

• ###### hobovskycommented on "Two to One" ruby solution
• solution has to be correct to be posted here.
• any solution is just as correct as far the tests go. If tests are poor, invalid solutions can slip through.
• but still this solution seems to be correct, because task guarantees that only letters will be passed in. solution does not have to check for non-letters.
• ###### benj2240commented on "Two to One" ruby solution

I thought a solution had to be correct to be posted here?

• ###### kedlogic@gmail.comcommented on "Two to One" ruby solution

This is incorrect. It does not test for non-leters.

• ###### extrncommented on "Stringy Strings" haskell solution

It's not about size. In point-free version `cycle "10"` will most likely be evaluated only once (even if you don't really need it in this case)

• ###### lyolka92commented on "Remove First and Last Character" javascript solution

Oh, I didn't know. Thanks!

• ###### rowcasedcommented on "Remove First and Last Character" javascript solution

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