當數字範圍太大,無法建立那麼大的陣列,可以改用hash table 、 binary search tree 等等資料結構 ... int sum_of_cubes(int n); {; // 其值為0 表示沒有存入答案 ...
確定! 回上一頁