need edge cases tests
Type coercion, x == y will return true or false, +true = 1, +false = 0
This comment is hidden because it contains spoiler information about the solution
Random tests are not similar to edge cases tests
stay DRY to the last breath ☔️
JavaScript
Bad testing, need an edge cases. One of my solutions was wrong, but there is no test cases for descending array like [3, 2, 1] and wrong solution works
this code is not necessary, bc js type coercion will do all necessary stuff
c[0] < c[2] ? 0 : 1
+true == 1 +false == 0
so all you need is this:
c[0] == c[2]
OMG, I've found that I have not read description to the end.
Not because of coding skills, but because of knowledge of number theory, I mean.
Great Kata, but I think it's too low ranked. It must be 5 or 4, not 6.
Clever, but extremly slow.
Loading collection data...
need edge cases tests
Type coercion, x == y will return true or false, +true = 1, +false = 0
This comment is hidden because it contains spoiler information about the solution
Random tests are not similar to edge cases tests
stay DRY to the last breath ☔️
JavaScript
Bad testing, need an edge cases.
One of my solutions was wrong, but there is no test cases for descending array like [3, 2, 1] and wrong solution works
This comment is hidden because it contains spoiler information about the solution
this code is not necessary, bc js type coercion will do all necessary stuff
+true == 1
+false == 0
so all you need is this:
This comment is hidden because it contains spoiler information about the solution
OMG, I've found that I have not read description to the end.
This comment is hidden because it contains spoiler information about the solution
Not because of coding skills, but because of knowledge of number theory, I mean.
Great Kata, but I think it's too low ranked. It must be 5 or 4, not 6.
Clever, but extremly slow.
Loading more items...