摘要:
1 #include <stdio.h> 2 // Q1.Write a recursive function that 3 // merges two sorted arrays into another array 4 void Merge(int a[], int n1, int b[], int n2, int c[]) 5 { 6 if(n1 != 0 && n2 != 0) 7 { 8 if (a[n1-1] < b[n2-1]) 9 {10 c[n1 + n2 -1] = b[n2-1];11 Merge(a, n1, b, n2-1, c);1 阅读全文
posted @ 2011-07-23 08:52
Mayus
阅读(150)
评论(0)
推荐(0)
浙公网安备 33010602011771号