摘要:
class Solution {public: void sortColors(int A[], int n) { int cnt[3] = {0}; for (int i = 0; i 0) start += cnt[i-1]; for (... 阅读全文
posted @ 2014-07-17 19:43
卖程序的小歪
阅读(146)
评论(0)
推荐(0)
摘要:
class Solution {private: vector sum; vector step; set can;public: int jump(int A[], int n) { step.clear(), sum.clear(), can.clear()... 阅读全文
posted @ 2014-07-17 16:08
卖程序的小歪
阅读(202)
评论(0)
推荐(0)