Well, the designer of the problem has error with its own solution


  • 0

    I haven't begun writing code for this problem yet. But I tested the input of [6,5,4,1,1,1], and It gives the following expected answer.

    Special Judge: No expected output available.

    Interesting.


  • 0

    It just means that there are multiple possible answers. If you run your code and it shows the same thing for your output, then it's correct. If it shows your actual output, it means that it's wrong.


  • 0

    then, how about [1,5]? there is only one possible solution, i.e., [1,5]. it still says "Special Judge: No expected output available."


  • 0

    No matter whether there is one answer or not, for the kind of problems that may have multiple valid answers OJ always says that. There are other problems like this too. What's important is that you can still figure out whether the output is right or wrong.


  • 0

    all right. this is the first time I see this kind of output. Thank you for let me know


Log in to reply
 

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