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.
With the operation |=|, any 2 natural numbers are equal and I can prove the following:
I am new to Haskell, but I do not understand how |=| compiles
I mean you need up to
sqrt(n)+1
non/2+1
You are looping over much more integers than needed
Both algorithms are linear on the input; but yes, this one is faster
The sample test for laziness is calling foldr instead of fixFoldr in Haskell
This comment is hidden because it contains spoiler information about the solution
I am new in Haskell and I do not know how to use the type
Any pointers or link to a tutorial on how to instanciate certain functor f?
When the test asks for the page number of the item element at -1, it expect Just 0; in Haskell
Why sort in this solution?
I thought of the same :)