Ad
  • Custom User Avatar

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

  • Custom User Avatar

    All test cases except 1 has the same graph structure, and the remaining test case only has 1 of 3 possible graph structures, so it's very easy to hardcode all of them: see this

    Basically, there should be actual random tests (actual as in, random graphs), and the graph sizes needs to be bigger.

    (Random tests also need null cases, obviously)

  • Custom User Avatar

    Either the description (preferrably) or the sample tests (or both) should expose the fact that a single starting thing can, via different processes, lead to multiple ending things, and vice versa, multiple different starting things can lead to a single ending thing.
    This would save the user some time since without those specifications, a much simpler solution is possible and likely to be tried first.

  • Custom User Avatar

    No random tests in JS.

  • Custom User Avatar

    Could do with more random testing.

  • Custom User Avatar

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