Practice Valid Palindrome II
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
Given a string s, return true if the s can be palindrome after deleting at most one character from it.
Source: Valid Palindrome II on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
Input
s = "aba"
Output
true
# Example 2
Input
s = "abca"
Output
true
# Example 3
Input
s = "abc"
Output
false
Constraints
1 <= s.length <= 10^5
s consists of lowercase English letters.
Related LeetCode Problems
Practice more problems similar to Valid Palindrome II.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.