bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
EasyTwo PointersLC 680

Valid Palindrome II

Given a string s, return true if the s can be palindrome after deleting at most one character from it.

Asked at 5 companies
AtlassianFacebookGoogle
Hints
  • 1.Think about which data structure fits best
  • 2.Consider the time complexity of your approach
  • 3.Look for patterns in the constraints
LeetCode