摘要:
class Solution { public: int longestValidParentheses(string s) { int res = 0, start = 0; stack<int> m; for (int i = 0; i < s.size(); ++i) { if (s[i] = 阅读全文
posted @ 2017-02-13 23:36
王坤1993
阅读(127)
评论(0)
推荐(0)
摘要:
class Solution { public: void nextPermutation(vector<int> &num) { int i, j, n = num.size(); for (i = n - 2; i >= 0; --i) { if (num[i + 1] > num[i]) { 阅读全文
posted @ 2017-02-13 00:00
王坤1993
阅读(138)
评论(0)
推荐(0)

浙公网安备 33010602011771号