Find the Index of the First Occurrence in a String (LeetCode 28)
EasyLeetCode 28 · Two Pointers · Google, Amazon +14 · 15:32Find the Index of the First Occurrence in a String · Google, Microsoft · Leetcode 28My notes
Sign in to keep private notes on every station, with video timestamps.
Pause here and write your approach in two lines. Compare it with MIK's when the video ends.
Sign in to write your approach →About this video
Video solution for LeetCode 28 Find the Index of the First Occurrence in a String by codestorywithMIK: Strings, Easy. Topics: Two Pointers, String, String Matching, Z Algorithm. Watch the explanation, then check the code and solve it on LeetCode.
- Difficulty
- easy
- Topics
- Two Pointers, String, String Matching, Z Algorithm, Knuth–Morris–Pratt Algorithm, Boyer–Moore String-Search Algorithm
- Patterns
- Two Pointers, Pattern Matching (KMP / Z / Rabin-Karp)
- Chapter
- Strings
- Duration
- 15:32
Related problems
- Knuth-Morris-Pratt KMP String Matching Algorithm
- Reverse Words in a String III (LeetCode 557)
- Backspace String Compare (LeetCode 844)
- Find Beautiful Indices in the Given Array (LeetCode 3006)
- Minimum Time to Revert Word to Initial State (LeetCode 3029)
- Leetcode 165: Compare Version Numbers with stringstream (LeetCode 165)
- Append Characters to String to Make Subsequence (LeetCode 2486)
- Find the Closest Palindrome (LeetCode 564)