假设我有两种算法:for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { //do something in constant time } } 这自然是O(n^2)。假设我也有:for (int i = 0 ...
確定! 回上一頁