Title: leetcode28-找出字符串中第一个匹配项的下标 | snmlm
Open Graph Title: leetcode28-找出字符串中第一个匹配项的下标
Description: 题目描述给你两个字符串 haystack 和 needle ,请你在 haystack 字符串中找出 needle 字符串的第一个匹配项的下标(下标从 0 开始)。如果 needle 不是 haystack 的一部分,则返回 -1 。 示例 1: 1234输入:haystack = "sadbutsad", needle = "sad"输出:0解释:&quo
Open Graph Description: 题目描述给你两个字符串 haystack 和 needle ,请你在 haystack 字符串中找出 needle 字符串的第一个匹配项的下标(下标从 0 开始)。如果 needle 不是 haystack 的一部分,则返回 -1 。 示例 1: 1234输入:haystack = "sadbutsad", needle = "sad"输出:0解释:&quo
Keywords:
Mail addresses
undefined
Opengraph URL: https://snmlm.github.io/algorithm/leetcode/leetcode_28/
Generator: Hexo 5.1.1
Domain: snmlm.github.io
| None | no-siteapp |
| author | snmlm |
| copyright | snmlm |
| format-detection | telephone=no |
| theme-color | #ffffff |
| og:type | article |
| og:site_name | snmlm |
| og:image | https://snmlm.github.io/img/head.gif |
| article:published_time | 2023-03-12T16:00:00.000Z |
| article:modified_time | 2023-03-13T08:34:27.253Z |
| twitter:card | summary |
Links:
Viewport: width=device-width,initial-scale=1