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.
Great Kata! Finally solved it, and my solution isn't that bad.
Have
test.assertEquals(no5s(16384, 32768), 0, 'a = 82, b = 43')
in JS version again.Task description states "Sometimes a line may be valid in one direction but not the other. Such a line is still considered valid."
Need either to update description or to update tests.
Date issue,
new Date()
will give current date, but test expect year 2017. So how?Beautiful. I tried using regex bust I used
.split
instead and it doesn't work.This comment is hidden because it contains spoiler information about the solution