Ad
  • Custom User Avatar

    Indeed ! All attempts work now !

    That was very bad from me...But no errors during execution and a result that looked very "normal", what a trap !

    Thanks for your reply !

  • Custom User Avatar

    [language used : C]

    Hi,
    An attempt fails and is somewhat confusing :

    The expression (as strings) (actual) == (s->expected) is false:

    actual

    68,70,72-75,77,80,82,83,85,87,89,90,92,94,97-99,102-104,106,109,112,115,118,119,122,124,125,128,130,132,134-137

    expected

    68,70,72-75,77,80,82,83,85,87,89,90,92,94,97-99,102-104,106,109,112,115,118,119,122,124,125,128,130,132,134.

    Since, in my code, the numbers written in the result only come from the array args, how is that possible 137 appears in my result since the array stops at 134 ?

    Anyway, thanks for your kata !

  • Custom User Avatar

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

  • Custom User Avatar

    Test in C with n = 7375 is ok on my side and takes approx. 2 seconds.

    Since my laptop isn't a fancy one (Intel® Core™ i5-8250U CPU @ 1.60GHz × 8), are there more CPU consuming tests after that one ?

  • Custom User Avatar

    Language used : C

    Could someone tell me what is that uncheated snail ? Is it an empty one ?

    It seems the very last attempt (the 15th ?) crashes (signal 11 : SIGSEGV)

    [EDIT]]finally got that last little devil...

  • Custom User Avatar

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

  • Custom User Avatar

    No, Node class already exists ( I tried to cheat by creating one but, no way, it would be a duplicate => compilation error :-) ) but is not available to run tests on our beloved machine.

  • Custom User Avatar

    There's no way to test locally : Node class is not available, not a big deal but...

  • Custom User Avatar

    Don't trust my solution, I've seen random tests that don't pass... and I clicked "Submit" when it was ok, too late... :-(

  • Custom User Avatar

    I like your solution : no import.