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.
That Ruby solution was invalidated some time ago.
Fixed.
I just solved the Haskell version and everything was cool. I'll mark this as resolved.
Fixed Haskell
If there are other language versions with the same issue, please raise a separate issue with a list of all of them.
In general float comparisions can be problematic like that because the order that you do operations will change the results so it can throw the rounding either way in close situations. It is better off, but more complicated to directly do a float comparison.
This comment is hidden because it contains spoiler information about the solution
Be careful about your implementation of
foldr'
!This comment is hidden because it contains spoiler information about the solution
Fixed.
Resolving issue for approval
push n - Pushes an integer onto he stack.
It is in the description all along.
lastDigit
is monomorphic and has type[Integer] -> Integer
. So I see no option, howcould possibly instantiate
x
andy
withInt
.Did you find the problem? I am afraid that the Unit tests crashes the run and has no time to say something... which is bad but the kata has no power on that. It would be the server that should warn with something like "Crash"...
You pass the "Example tests" where there are no problems but not all of the fixed tests when you "attempt". Usually I give as advice to print the input but in this case you would not even see the log.
I tried your solution and find kind of a flaw in your code. Think of a possible corner case. Please tell me when you succeed. Cheers!!
Loading more items...