Is there Bug? Reconstruct Itinerary with input [["MUC","LHR"],["JFK","MUC"],["JFK","SAA"]]


  • -3

    i just want to test whether to return the longest or lexical.

    [["MUC","LHR"],["JFK","MUC"],["JFK","SAA"]]

    Has two answer:
    JFK,MUC,LHR and JFK,SAA

    I mean SAA > MUC so want the robot give me the right answer!

    but the cheker gives me thus:

    Expected answer

    ["JFK","SAA","MUC","LHR"]

    A ha! what the fuzzy!!!!

    dumb!


  • 3
    K

    Read the question again

    You may assume ALL tickets form at least one valid itinerary.

    还有,作为一名国人注意一下你的素质好不好看不下去了


  • 0

    So, what do I say some murmur?

    I just tell that the official cheker may give the wrong answer.......when the input is

    [["MUC","LHR"],["JFK","MUC"],["JFK","SAA"]] OR
    [["MUC","LHR"],["JFK","MUC"],["JFK","SAA"],,["JFK","SAB"]]


  • 0
    O

    作为一名国人,顶你!!!


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.