Testcase# 8


  • 0
    M

    Why is the expected output for [["JFK","KUL"],["JFK","NRT"],["NRT","JFK"]]
    as shown below ?

    Input:
    [["JFK","KUL"],["JFK","NRT"],["NRT","JFK"]]
    Expected:
    ["JFK","NRT","JFK","KUL"]

    I got the output as :
    Output:
    ["JFK","KUL"]

    which seems correct based on lexical order. What am I missing ?


Log in to reply
 

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