範例:加總數字. 理論:數字雙雙相加。 n 步變log₂n 步。 實務:陣列切成數段,分頭計算總和。最後累加各段總和。 void summation(); {; int array[5] = {3, 6, 9, -8, ...
確定! 回上一頁