摘要:
链接: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, 阅读全文
摘要:
链接:https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof/ 代码: class Solution { public: vector<string> permutation(string s) { vector<string> re 阅读全文