摘要:
链接:https://leetcode-cn.com/problems/shu-zu-zhong-chu-xian-ci-shu-chao-guo-yi-ban-de-shu-zi-lcof/ 思路: cnt记录个数,val记录值;遍历数组,若等于val,则cnt++,否则cnt--,若cnt为0, 阅读全文
posted @ 2020-03-02 21:52
景云ⁿ
阅读(88)
评论(0)
推荐(0)
摘要:
链接:https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof/ 代码: class Solution { public: vector<string> permutation(string s) { vector<string> re 阅读全文
posted @ 2020-03-02 21:43
景云ⁿ
阅读(111)
评论(0)
推荐(0)

浙公网安备 33010602011771号