Incorrect test case?

  • 0

    Test case ["wrt","wrtkj"], expected result is "jkrtw"
    I suspect the test case is incorrect, because from the input words, the 'w', 'r', 't', 'k', 'j' could be any order.

    for example, if w > t > j > r > k, the input words order is still valid

Log in to reply

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