Ad
  • Default User Avatar

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

  • Custom User Avatar

    your approach is good but I guess you missed the very same "micro"-optimization that I did => try to think about something that you may currently be doing again and again and that you could avoid.

  • Default User Avatar

    You are 14.0 times faster than the naive solution (100 nodes)

    You are 143.0 times faster than the naive solution (1000 nodes)

    Execution Timed Out (12000 ms)

    I just... how?! This is also with a lot of debug code. Normally it's closer to 20x for the first 100 nodes