討論串[問題] 演算法...
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 1→)留言1則,0人參與, 最新作者yauhh (喲)時間16年前 (2009/06/07 18:48), 編輯資訊
0
0
0
內容預覽:
1. 先有個稱重函數.. 呼叫 weigh(array, count_of_array) 可計算 array 的重量總和.. 參考程式碼:. int weigh(int *a, int n) {. int i, sum = 0;. for (i=0; i<n; i++). sum += a[i];.
(還有1968個字)

推噓0(0推 0噓 1→)留言1則,0人參與, 最新作者meteor1211 (小希)時間16年前 (2009/06/07 13:01), 編輯資訊
0
0
1
內容預覽:
Counterfeit Coin的問題,. 以下是問題. Write a pseudocode for the divide-into-three algorithm for. the fake-coin problem.(make sure that your algorithm handles.
(還有84個字)
首頁
上一頁
1
下一頁
尾頁