摘要:
Mark Allen Weiss的data structures and algorithm analysis in c求一个整数序列的最大的连续子列和: 1 #include 2 3 static int Max3( int A, int B, int C ) 4 { 5 return A > B ? ( A > C ? A : C ) : ( B > C ? B : C ); 6 } 7 8 static int maxsubsum(const int a[], int left, int right) 9 {10 int maxleftsum, maxrig... 阅读全文