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.
OH!!! It is length vs width. Sorry, my bad :)
If i must get exactly n'th position, then how do i get 100 in 15 steps? It is impossible. because 91 + 14 == 105 and if you move -> or <- by 15 from 105, you can not reach exactly 100. Check Haskell tests please.
This comment is hidden because it contains spoiler information about the solution
Square negative number equals square of this number without sign. Jesus Christ.
Too much time killed by 8kyu. Not worth it.
Why not 10 kyu then?
This is not 8kyu. Who approved this kata has to feel guilty.
In Haskell function returns Maybe Int, but test case expects Int. Types don't match. Change test cases so types match.
Still not fixed
I don't understand. I must find x2 and then check if x2 > 0 and x2 < 1e-12. Then return 0 or x. RIGHT? I don't get it