• nikit696commented on "Evens and Odds" javascript solution

really clever!

• algoSolver988commented on "Is this a triangle?" javascript solution

When you copy an array using the assignment operator (equal sign) and you modifiy the copied array you mutate/modify the original array as well.
If you don't want to modify the original array it's best to use spread syntax (other options as well to do this)

In our case, he assinged the a,b,c in an [array] first and secondly he assigned the value of running [sort] through it thus what's on the left will be exactly to what's on the right.

So when he returns [a and b] he knows that a trianlge can only have 3 lengths and they're the shortests.

Hope that answered your questions, let me know if you need clarification.

• wooflcommented on "Is this a triangle?" javascript solution

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

• Furasucocommented on "Sum of Digits / Digital Root" kata

you need a return statement on the last line

Cool!

• Furasucocommented on "Is this a triangle?" kata

The question is whether there exists a triangle with sides (a,b,c), but it doesn't need to be a right triangle. In this case, (1,2,2) is an isosceles triangle so you should return true

• Furasucocommented on "Born to be chained" javascript solution

You shouldn't hardcode the functions. It's supposed to work for arbitrary sets of functions

Very nice!

• Furasucocommented on "Corner circle" javascript solution

(sqrt2 - 1) ** 2 = 3 - 2sqrt2

• Furasucocommented on "Simple Fun #289: Sum The Difference" javascript solution

nice use of destructuring

• Furasucocommented on "Minimum path in squares" kata

My solution fails only for the very big squares. It's probably something to do with the array reference issue, but I give up

Thanks

• Rymensymencommented on "Method For Counting Total Occurence Of Specific Digits" python solution

Very clean solution

• Furasucocommented on ""Matrix Trace" JavaScript Translation"

Indeed I had not checked if the matrix was square or not. Just fixed it

• JohanWiltinkcommented on ""Matrix Trace" JavaScript Translation"

Your solution is incomplete ( `trace( [ [1,2], [1,2,3] ] )` ) and your example tests don't work.

Also, this is just not a good kata.