Explanation of some test cases and incorrect test case in OJ


  • 0
    A

    There are two test which I found confusing:
    a) ["wrtkj","wrt"]
    OJ answer: ""
    b) ["z", "z"]
    OJ answer: "z"

    Could somebody please explain why there is a difference in the two. In my opinion, we cannot decide in any of them what the order is as there is not much information. We might say that since there is only word in case b so we can decide, but I think that is a little ambiguous.

    Also the test cases are broken. Here are the screen shots from two of my submissions:

    0_1484801093968_wrong1.png

    0_1484801111544_wrong1.png

    Please fix them


  • 0
    A

    @administrators Please have a look.


Log in to reply
 

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