Can anyone help me with this error result?


  • 0
    Y
    Input:
    1
    []
    Output:
    []
    Expected:
    Special judge: No expected output available.
    

    what this means? how to fix it?


  • 1

    Your output is wrong because there is one course and your course schedule is empty (it must contain that one course).

    I guess there is no expected output because in general there can be many valid outputs here, not just one, and apparently the system then doesn't pick one because that could be misleading (though I think sometimes in such cases it still does pick and show an expected output, I'm not sure when/why).


  • 0
    L
    This post is deleted!

  • 0
    C

    you should return new int[1].

    at least 30 characters lollllllllllllllllllllllllllllllllllllll.


Log in to reply
 

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