Given an array of integers nums, sort the array in ascending order.
將array中數值做排序。
Example 1:
Input: nums = [5,2,3,1]Output: [1,2,3,5]
題目:
Sort a linked list in O(n log n) time using constant space complexity.
There are a total of numCourses courses you have to take, labeled from 0 to numCourses-1.
numCourses
0
numCourses-1
Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1]
[0,1]