代码仓库:Github | Leetcode solutions @doubleZ0108 from Peking University.
解法1(T98% S35%):python的语法一行就可以搞定 rstrip()去除右侧的空格,split()以空格划分字符串,取最后一个数组元素就是最后一个单词
代码仓库:Github | Leetcode solutions @doubleZ0108 from Peking University.
解法1(T98% S35%):python的语法一行就可以搞定 rstrip()去除右侧的空格,split()以空格划分字符串,取最后一个数组元素就是最后一个单词
【LeetCode】2192. 有向无环图中一个节点的所有祖先
题目链接:htt历反向遍历字符串,寻找最后
给你一个字符串
博客主页:?看看是李XX还是李歘歘??每天分享一些包括但不限于计算机基础、算法等相关的知识点??点关注不迷路
最后一个单词的长度
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M