Ad
  • Custom User Avatar

    Rust:

    • decode is missing in initial code;
    • why is encode declared as pub ?
    • a macro like todo!() or unimplemented!() should be added to initial code so it compiles and panics instead of crashing.
  • Custom User Avatar

    My solution returns 0 when an answer cannot be found, and it fails with following errors:

    Incorrect answer for 241 ==> expected: <71> but was: <0>
    Incorrect answer for 11 ==> expected: <1> but was: <0>
    

    It seems that tests have a bug: they consider 71 a valid answer because 241 = 170 + 071, and they think that 1 is a correct answer because 11 = 10 + 01.

  • Custom User Avatar

    This kata makes no sense to me, is it a puzzle? Add the puzzle tag if it is.

  • Custom User Avatar

    Hi,

    Currently, the only way to get an idea about what the task actually is is to enter the trainer. So the code snippet of the sample tests should be given in the description (at least the its method and one test). For now, the task is totally obscure, and doesn't actually make sense, from the description alone.

    Cheers