I got a MLE error when I click 'submit solution', but if i copy the input and click 'run code', i got the same output as expected. I wonder why....
P.S. The error occurs in the numCourses=2000.
P.S. i am using adjacent matrix method
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.