Longest Palindromic Sub-string (LeetCode 5) | Full solution with examples | Study Algorithms

Pubblicato il: 13 giugno 2020
sul canale di: Nikhil Lohia
175,937
2.2k

👉 👉 Super helpful resources available here: https://nikoo28.github.io/all-my-links/

To see more videos like this, you can buy me a coffee: https://www.buymeacoffee.com/studyalg...

Longest Palindromic Substring is a programming challenge on LeetCode. A palindrome is a type of string that reads the same when reading left to right and right to left. An example of a palindrome can be “level”, “racecar”, “kayak” etc. Given a string, find the longest palindromic sub-string. You need to return just one string, and the characters should be contiguous. Watch the video to understand the problem in a simplified manner. I then work along with you to solve it first using a Brute Force approach, and then an efficient approach. All along with visuals and explanations.

00:00 - Intro
01:40 - Problem Statement and Test Case
02:58 - Brute Force Solution
03:45 - Efficient Solution
05:41 - Dry-run of code

📚 Links I talk about in the video:
Actual problem on LeetCode: https://leetcode.com/problems/longest...
Code on Github: https://github.com/nikoo28/java-solut...
Test cases on GitHub: https://github.com/nikoo28/java-solut...

📘 A text based explanation is available at: https://studyalgorithms.com/string/lo...

To see more videos like this, you can show your support on https://www.buymeacoffee.com/studyalg...

💻 Get Social 💻
Follow on Facebook at:   / studyalgos  
Follow on Twitter at:   / studyalgorithms  
Follow on Tumblr at:   / studyalgos  
Subscribe to RSS feeds: https://studyalgorithms.com/feed/

#leetcode #programming #tutorial


In questa pagina del sito puoi guardare il video online Longest Palindromic Sub-string (LeetCode 5) | Full solution with examples | Study Algorithms della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Nikhil Lohia 13 giugno 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 175,937 volte e gli è piaciuto 2.2 mille spettatori. Buona visione!