Ad
  • Default User Avatar

    Took me a while to figure out how you passed the cycle test! This is awesome.

  • Default User Avatar

    Need to specify if the array will always have at least two elements.

  • Default User Avatar

    The instructions state that "there is at most one road from one intersection to another" but the test data (for test 5) contains examples of more than one road from one intersection to another. Unless I'm misunderstanding the meaning of that statement.

    For example this seems to be in the test data:

        { from: 7, to: 75, drivingTime: 10 },
        { from: 7, to: 75, drivingTime: 4 },
        { from: 7, to: 75, drivingTime: 7 },
        { from: 7, to: 75, drivingTime: 8 },
        { from: 7, to: 75, drivingTime: 9 },
    
  • Default User Avatar

    The description of the second method says it "takes valid ints". This would be better described as "takes two parameters which are each valid ints". I was confused on first reading if the method took an array or what.