Skip to content
Avio Lines
← Strings lineD2Stop 16 of 104

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 28
MIK's code LeetCode ↗ YouTube ↗

My notes

Sign in to keep private notes on every station, with video timestamps.

Try it before watching

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