Ad
  • Custom User Avatar
  • Custom User Avatar

    Hi,

    Errrr....
    Dunno what going on, but something seems to be very wrong (python):

    testing for 99
    sums: [18]: [9] should equal [18]
    
    • expected and actual are swapped
    • why [9] instead of 99 as annouced in the tests?

    • missing sample tests (probably in all languages): some inputs of length 1

    Cheers

  • Custom User Avatar

    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, and Eq 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 of MonadPlus as Num it blocks this approach completely, and instead requires Eq.

  • Custom User Avatar

    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?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution