討論串[理工] [軟設]-中正96-資工
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者dendrobium (石斛蘭)時間15年前 (2010/03/23 22:01), 編輯資訊
0
0
0
內容預覽:
int sos(int A[], int N, int M). {. if( N==1 ){. return (A[0]==M);. }. else{. return ( sos(A+1, N-1, M-A[0]) || sos(A+1, N-1, M) );. }. }. 大概是這樣 :). --

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者alibudaken (最後掙扎J)時間15年前 (2010/03/23 21:33), 編輯資訊
0
0
0
內容預覽:
12.. (a) Given an array A of N positive integers and an integer M. write a recursive C function. int sos(int A[], int N, int M). which returns 1 if th
(還有174個字)
首頁
上一頁
1
下一頁
尾頁