bugl
Home
Learn
Patterns
Paths
Search
Premium
Auto
Home
Learn
Patterns
Paths
Medium
1-D Dynamic Programming
LC 5
Longest Palindromic Substring
Given a string s, return the longest palindromic substring in s.
Asked at 30 companies
Adobe
Airbnb
Alibaba
+27 more
Hints
1.
Think about what data structure fits Longest Palindromic Substring
2.
Consider the brute force complexity and how to optimize
3.
Can you trade space for time?
Start Puzzle
LeetCode
NeetCode