sort colors
摘要:
1 void swap( int &a, int &b ) 2 { 3 int tmp = a; 4 a = b; 5 b = tmp; 6 return; 7 } 8 void sortColors(int A[], int n) { 9 // Start typing your C/C++ solution below10 // DO NOT write int main() function11 int r = 0, w = 0, b = n-... 阅读全文
posted @ 2013-07-03 23:27 jumping_grass 阅读(121) 评论(0) 推荐(0)
浙公网安备 33010602011771号