Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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...