Course Schedule III
@awice Sorry didn't read the comments before, just thought you might have missed it.
Smart solution! Thank you!
It will be faster if you use call by reference during sorting.
@mylemoncake Ye... keep making typos, what I meant was it is still the same as my original post.
I think here ,
temp-curr+courses[i] <= courses[i] is unneccessary.
Because temp <= course[i-1] <= course[i]
so courses[i] < curr ensures temp-curr+courses[i] <= courses[i]
No one has replied
Disabled Categories are greyed out
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.