【leetcode系列】【py3】【简单】外观数列

题目: 原题链接: https://leetcode-cn.com/problems/count-and-say/   解题思路: 第一行已知为'1' 从第二行开始,递归遍历处理上一行字符串 直到第n行   代码实现: class Solution:     def countAndSay(self, n: int) -> str:         result_str, floor = '1',
相关文章
相关标签/搜索