Course Schedule II

Return a valid course order given prerequisites, or [] if impossible. Any full topological order is accepted. The answer is empty only when a cycle makes a complete order impossible.

Examples
Input: [2,[[1,0]]]
Output: [0,1]
Hints

Course Schedule II

Return a valid course order given prerequisites, or [] if impossible. Any full topological order is accepted. The answer is empty only when a cycle makes a complete order impossible.