|
| 1 | +<h2><a href="https://leetcode.com/problems/valid-palindrome-ii/">680. Valid Palindrome II</a></h2><h3>Easy</h3><hr><div><p>Given a string <code>s</code>, return <code>true</code> <em>if the </em><code>s</code><em> can be palindrome after deleting <strong>at most one</strong> character from it</em>.</p> |
| 2 | + |
| 3 | +<p> </p> |
| 4 | +<p><strong>Example 1:</strong></p> |
| 5 | + |
| 6 | +<pre><strong>Input:</strong> s = "aba" |
| 7 | +<strong>Output:</strong> true |
| 8 | +</pre> |
| 9 | + |
| 10 | +<p><strong>Example 2:</strong></p> |
| 11 | + |
| 12 | +<pre><strong>Input:</strong> s = "abca" |
| 13 | +<strong>Output:</strong> true |
| 14 | +<strong>Explanation:</strong> You could delete the character 'c'. |
| 15 | +</pre> |
| 16 | + |
| 17 | +<p><strong>Example 3:</strong></p> |
| 18 | + |
| 19 | +<pre><strong>Input:</strong> s = "abc" |
| 20 | +<strong>Output:</strong> false |
| 21 | +</pre> |
| 22 | + |
| 23 | +<p> </p> |
| 24 | +<p><strong>Constraints:</strong></p> |
| 25 | + |
| 26 | +<ul> |
| 27 | + <li><code>1 <= s.length <= 10<sup>5</sup></code></li> |
| 28 | + <li><code>s</code> consists of lowercase English letters.</li> |
| 29 | +</ul> |
| 30 | +</div> |
0 commit comments