Insufficient test cases ??

  • 0

    For the tickets [["JFK","B"],["JFK","A"],["A","C"],["C","X"]]
    Output of the accepted solution is ["JFK","B","A","C","X"]

    But there is no ticket ["B","A"] in the input.

  • 0

    because problem says, there will be at least one valid answer.
    but your input doesn't have valid answer.

Log in to reply

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