LeetCode392. 判断子序列
2024-08-28 07:49:23
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
最新文章
- MD5 32位 小写加密和大写加密
- LR常用函数以及调用自定义函数
- iOS学习32之UIKit框架-可视化编程-XIB
- The content of element type ";package"; must match ";(result-types?,interceptors?...
- JavaWeb项目开发案例精粹-第4章博客网站系统-005action层
- 《OD大数据实战》MapReduce实战
- Mysql使用大全
- Https如何保证安全
- cv论文(SPARSE REPRESENTATION相关)
- 应用JConsole学习Java GC
- [itint5]最大子矩阵和
- SPOJ TEMPLEQ - Temple Queues(二分查找+树状数组)
- Jenkins错误“editable email notification aborted due to exception”的问题解决
- unity3d导出pdf
- iOS推送介绍
- R语言与格式、日期格式、格式转化
- UNIX网络编程——客户/服务器心搏函数
- 传输层--TCP和UDP的区别
- STM32F412应用开发笔记之十:多组分气体分析仪设计验证
- eclipse server和tomcat的区别,将server的部署目录改到自己安装的tomcat中及如何设置tomcat用户
热门文章
- HDU 1564 Play a game &;&; HDU 2147 kiki&#39;s game
- Codeforces Round #547 (Div. 3) F1/2. Same Sum Blocks (Easy/Hard) (贪心,模拟)
- Java之浅拷贝和深拷贝
- 牛客网多校第7场 J Sudoku Subrectangles 【构造】
- SPOJ PHRASES Relevant Phrases of Annihilation(后缀数组 + 二分)题解
- 使用 Canvas 实现一个类似 Google 的可视化的页面错误反馈库
- Learning Web Performance with MDN
- How to use JavaScript to implement precise setTimeout and setInterval
- how to install zoom meeting app in macOS
- Chrome &; console.log &; color &; js