[LeetCode C++] 38. 外观数列_c++ leetcode——38. 外观数列含测试代码-CSDN博客

网站介绍:来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/count-and-say/题目:方法一:双指针class Solution {public: string countAndSay(int n) { if(n==1) return "1"; string pre=""; string cur="1"; for(int i=1; i<n; i++){ _c++ leetcode——38. 外观数列含测试代码