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.
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.
then, how about [1,5]? there is only one possible solution, i.e., [1,5]. it still says "Special Judge: No expected output available."
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.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.