摘要: 问题 给你两个字符串 haystack 和 needle ,请你在 haystack 字符串中找出 needle 字符串出现的第一个位置(下标从 0 开始)。如果不存在,则返回 -1 。 解决 class Solution { public int strStr(String haystack, S 阅读全文
posted @ 2022-07-01 21:59 new_monkey 阅读(120) 评论(0) 推荐(0)