Input: ["wrt","wrf","er","ett","rftt"] Output: "werft" Expected: Special judge: No expected output available.

  • 3

    What should be the correct answer?

  • 0

    It seems to me that this is invalid. If "wrt" comes before "wrf" then f must come after t, but it doesn't in "rftt". However, this is the very first example in the instructions and it, as well as the test case, asserts "wertf" is the correct order for that input. I believe this to be a mistake.

Log in to reply

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