Given a string **S**, identify the longest palindromic substring within **S**. A palindromic substring is defined as a sequence of characters within **S** that reads the same forwards and backwards. For example, "racecar" and "level" are palindromic substrings.
Topics
Companies
Articles
Examples:
Expected Time Complexity: O(n^2)
Expected Space Complexity: O(1)
Constraints:
1 <= |S| <= 10^4
Companies:
AmazonMicrosoftSamsungVisaWalmart + 2 more
Topics:
String
Please log in to access the Submissions tab, where you can review your progress and explore code submissions from other participants.
Please log in to access the Solution tab and view detailed answers and explanations.
Please log in to access the Discussion tab and join conversations with other participants.
Access Restricted: Please Login to access the code editor and test cases.