LeetCode 5. Longest Palindromic Substring [Algorithm + Code Explained ]

preview_player
Показать описание
One of the most frequently asked coding interview questions on String in companies like Google, Facebook, Amazon, LinkedIn, Microsoft, Uber, Apple, Adobe etc.

LeetCode : Longest Palindromic Substring

Question Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
Example:

Input: "babad"
Output: "bab"
Note: "aba" is also a valid answer.

Рекомендации по теме
Комментарии
Автор

i think out of the bunch of explanations out there, yours is the best in terms of converting the thought to actual code, thanks a lot for doing this.

arnabchatterjee
Автор

Mam how did you prepare for dynamic programming,

AmanSharma-vbjl
Автор

I think we can improve on this by breaking the loop if 'i' and 'len' is greater than half of the length of the string.

leos_abraham
Автор

Hey Jayati,
This video is awsome, thank you for the hard work you have put in.
But in an interview, an interviewer asked me to solve it in O(n) time complexity, although i have solved it in O(n*n) . If you can create video to solve in O(n), then it will be highly appreciable.

hiteshgupta
Автор

amazing explanation, I am learning from you how to explain my interviewer

vaishnavikulkarni
Автор

Awesome explaination, also waiting for the explaination of Manacher's Algorithm

YogeshSharma-btxl
Автор

you just copy pasted the solution from the editorial, very helpful

tsupreetsingh
Автор

Whole video as well as code is same like Prakash Shukla video😂😂 try somethig new

deepjyotidebnath