Problem: https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/description/ Code: class Solution: def strStr(self, haystack: str, needle: str) -> int: return haystack.find(needle) Key Points: Core Idea We need ...
Coder
Markdown supported · ⌘↵ to post
No responses yet.