网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  [LeetCode] 038. Count and Say (Easy) (C++/Python)

[LeetCode] 038. Count and Say (Easy) (C++/Python)

分类: IT文章 • 2024-08-12 09:18:19

索引:[LeetCode] Leetcode 题解索引 (C++/Java/Python/Sql)
Github: https://github.com/illuz/leetcode


038. Count and Say (Easy)

链接:

题目:https://leetcode.com/problems/Count-and-Say/
代码(github):https://github.com/illuz/leetcode

题意:

数数。第一个是 1,第二个是数前一个数:1 个 1,就是 11。第三个是 2 个 1。就是 21,第三个是 1 个 2,1 个 1,就是 1211,第四个是 111221…
如今问第 n 个数是什么。

分析:

能够直接模拟,一个个数过去。

代码:

相关推荐

  • 【Leetcode】【Easy】Count and Say
  • [LeetCode]题解(python):038-Count and Say
  • [LeetCode] 038. Count and Say (Easy) (C++/Python)
  • [leetcode] Count and Say @ Python
  • 【leetcode❤python】 38. Count and Say
  • leetcode 37. Sudoku Solver 36. Valid Sudoku 数独问题 Clean and Easy82ms Python Sharing my 2ms C++ solution with comments and explanations. Simple and Clean Solution / C++ c++ clear solution using dfs, beating 90% c++ coder. 13-line Python solution, dfs, beats 47.79%
  • [LeetCode]题解(python):038-Count and Say
  • Qt linux文件同步写入
  • /etc/redhat-release
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号