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.
Javascript translation
C++ Translation
This comment is hidden because it contains spoiler information about the solution
Hi,
Errrr....
Dunno what going on, but something seems to be very wrong (python):
[9]
instead of 99 as annouced in the tests?Cheers
Re-raising the issue from below:
The final solution for this kata requires at least
Eq a
besides the mentioned constraints (Num or MonadPlus). This is not mentioned anywhere, andEq
is not required by either of them, so the description is intentionally holding back on crucial information.It is also unclear what the kata actually wants at its current state: there is a way of performing this task with just
Num
(this is left as an exercise to the reader). However with the botched implementation ofMonadPlus
asNum
it blocks this approach completely, and instead requiresEq
.There's already a kata of a bijective binary converter. Does it add anything if the addition is not mandated to be done without converting to normal integers?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution