摘要: LeetCode 125 验证回文串 1. 题目地址 https://leetcode.cn/problems/valid-palindrome/?envType=study-plan-v2&envId=top-interview-150 2. 题解 这道题比较简单,思路如下: 1. 对源字符串进行 阅读全文
posted @ 2023-10-09 11:47 夏目^_^ 阅读(16) 评论(0) 推荐(0)
摘要: LeetCode 28 找出字符串中第一个匹配项的下标 1. 题目地址 https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/?envType=study-plan-v2&envId=top-i 阅读全文
posted @ 2023-10-09 09:45 夏目^_^ 阅读(17) 评论(0) 推荐(0)
摘要: LeetCode 58 最后一个单词的长度 1. 题目地址 https://leetcode.cn/problems/length-of-last-word/description/?envType=study-plan-v2&envId=top-interview-150 2. 题解 这道题由于要 阅读全文
posted @ 2023-10-09 09:38 夏目^_^ 阅读(17) 评论(0) 推荐(0)