原题链接

1 class Solution:
2 def isSubsequence(self, s: str, t: str) -> bool:
3 lens,lent = len(s),len(t)
4 i = j = 0
5 while i < lens and j < lent:
6 if s[i] == t[j]:
7 i += 1
8 j += 1
9 return i == lens

最新文章

  1. MD5 32位 小写加密和大写加密
  2. LR常用函数以及调用自定义函数
  3. iOS学习32之UIKit框架-可视化编程-XIB
  4. The content of element type &quot;package&quot; must match &quot;(result-types?,interceptors?...
  5. JavaWeb项目开发案例精粹-第4章博客网站系统-005action层
  6. 《OD大数据实战》MapReduce实战
  7. Mysql使用大全
  8. Https如何保证安全
  9. cv论文(SPARSE REPRESENTATION相关)
  10. 应用JConsole学习Java GC
  11. [itint5]最大子矩阵和
  12. SPOJ TEMPLEQ - Temple Queues(二分查找+树状数组)
  13. Jenkins错误“editable email notification aborted due to exception”的问题解决
  14. unity3d导出pdf
  15. iOS推送介绍
  16. R语言与格式、日期格式、格式转化
  17. UNIX网络编程——客户/服务器心搏函数
  18. 传输层--TCP和UDP的区别
  19. STM32F412应用开发笔记之十:多组分气体分析仪设计验证
  20. eclipse server和tomcat的区别,将server的部署目录改到自己安装的tomcat中及如何设置tomcat用户

热门文章

  1. HDU 1564 Play a game &amp;&amp; HDU 2147 kiki&#39;s game
  2. Codeforces Round #547 (Div. 3) F1/2. Same Sum Blocks (Easy/Hard) (贪心,模拟)
  3. Java之浅拷贝和深拷贝
  4. 牛客网多校第7场 J Sudoku Subrectangles 【构造】
  5. SPOJ PHRASES Relevant Phrases of Annihilation(后缀数组 + 二分)题解
  6. 使用 Canvas 实现一个类似 Google 的可视化的页面错误反馈库
  7. Learning Web Performance with MDN
  8. How to use JavaScript to implement precise setTimeout and setInterval
  9. how to install zoom meeting app in macOS
  10. Chrome &amp; console.log &amp; color &amp; js