Assuming function rand() generates a random number in O(1) time, the time taken to shuffle all items in an array is proportional to the total number of items.
確定! 回上一頁