Skip to content
Avio Lines
← Strings lineD2Stop 45 of 104

Shortest Palindrome (LeetCode 214)

HardLeetCode 214 · Two Pointers · Google, Amazon +6 · 36:39Shortest Palindrome · Multiple Ways · KMP Zindabaad · Leetcode 214
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 214 Shortest Palindrome by codestorywithMIK: Strings, Hard. Topics: String, Rolling Hash, String Matching, Hash Function. Watch the explanation, then check the code and solve it on LeetCode.

Difficulty
hard
Topics
String, Rolling Hash, String Matching, Hash Function, Manacher, Z Algorithm, Knuth–Morris–Pratt Algorithm
Patterns
Two Pointers, Palindromes, Pattern Matching (KMP / Z / Rabin-Karp)
Chapter
Strings
Duration
36:39