• Sergiu Popcommented on "Remove String Spaces" javascript solution

I think there is actually a test case where it has whitespace in the end and it works without .trim()

• farhanadityacommented on "Sort and Star" javascript solution

I forgot you can split them. I think I'm too used to regex lol

• BS1commented on "Sort and Star" javascript solution

If I log out the input array after the method has run, I get the same as before, i.e. the input is not changed.

• Sharkpausecommented on "Two Sum" python solution

Because this has a complexity of O(n²) which is awful

Nice one!

• dmitrokozcommented on "Opposite number" java solution

Sometimes the shortest decisions in codewars have an issues. But pass all the test cases so they are winners by the way...

• Sharkpausecommented on "Two Sum" python solution

Bad way to solve the problem
this has the complexity of O(n^2)

• Comansharkcommented on "Ones and Zeros" python solution

Oh, shit!, I had no idea for the second argument in the int function. The use of the map is perfect.

• aidantorrencecommented on "Sum of Triangular Numbers" javascript solution

wrongo, you didn't read the question correctly

The one

• davpaezcommented on "Two Sum" python solution

Yes! Exactly what I was about to point out :)

• MitkaS7commented on "Remove String Spaces" javascript solution

Awesome!thnx!

• awesomeadcommented on "validate code with simple regex" python solution

The first pair of parentheses is the function call (`startswith()`), the second is the `(tuple)` containing individual prefix strings.

`startswith` can be called with a tuple of prefixed and will match any one of them.

• Tariqabucommented on "validate code with simple regex" python solution

I'm just wondering why we have double brackets around the numbers?

• Eleazar-Nathancommented on "Price of Mangoes" python solution

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