True, nice catch! Basically this happens because this solution does not calculate well the (-3 - 2), it returns -1 instead of -5. It would be nice to add this test to the solution validation.
I had the same problem, all test were passing except this one. But is not an issue of the kata, is just that you did not find a correct solution yet 🤷♂️
I just would like to suggest adding a test Test.assertEquals(multiply("0.01", "10"), "0.1"); because at the moment it does not catch this corner case 🤷♂️
I can see some repeating parts of code, probably you could try to create some functions and handle similar actions using different params instead of repeating similar code 🙂
I fixed this solution here: https://www.codewars.com/kata/reviews/52a78825cdfc2cfc87000008/groups/620b7948793105000108b662
True, nice catch! Basically this happens because this solution does not calculate well the (-3 - 2), it returns -1 instead of -5. It would be nice to add this test to the solution validation.
Vaya 😳
I had the same problem, all test were passing except this one. But is not an issue of the kata, is just that you did not find a correct solution yet 🤷♂️
Nice kata! 👏👏👏
I just would like to suggest adding a test
Test.assertEquals(multiply("0.01", "10"), "0.1");
because at the moment it does not catch this corner case 🤷♂️Hahahahaha, bloody hell, what a shame 🤦♂️
And I was thinking my solution will be the longest... 😅 🙈
+1, I think 3kyu is unreasonably high for this kata 🤷♂️
+1
How does it look possible and valid if the very first element was given as 4 and in the solution it becomes 1?
Check the first line: given [4,1,3,2] expected [1,4,3,2], it indeed looks strange 🤷♂️
Now I wonder how was that possible 🤔
This comment is hidden because it contains spoiler information about the solution
Wow, I thought my solution is long... 🤯 🤯 🤯
Good approach! 👍
I can see some repeating parts of code, probably you could try to create some functions and handle similar actions using different params instead of repeating similar code 🙂
+1
Amazing! 👏👏👏
Loading more items...