Skip to content

Commit 47fdeb3

Browse files
committed
Create README - LeetHub
1 parent 14ebc84 commit 47fdeb3

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

0125-valid-palindrome/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<h2><a href="https://leetcode.com/problems/valid-palindrome">125. Valid Palindrome</a></h2><h3>Easy</h3><hr><p>A phrase is a <strong>palindrome</strong> if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers.</p>
2+
3+
<p>Given a string <code>s</code>, return <code>true</code><em> if it is a <strong>palindrome</strong>, or </em><code>false</code><em> otherwise</em>.</p>
4+
5+
<p>&nbsp;</p>
6+
<p><strong class="example">Example 1:</strong></p>
7+
8+
<pre>
9+
<strong>Input:</strong> s = &quot;A man, a plan, a canal: Panama&quot;
10+
<strong>Output:</strong> true
11+
<strong>Explanation:</strong> &quot;amanaplanacanalpanama&quot; is a palindrome.
12+
</pre>
13+
14+
<p><strong class="example">Example 2:</strong></p>
15+
16+
<pre>
17+
<strong>Input:</strong> s = &quot;race a car&quot;
18+
<strong>Output:</strong> false
19+
<strong>Explanation:</strong> &quot;raceacar&quot; is not a palindrome.
20+
</pre>
21+
22+
<p><strong class="example">Example 3:</strong></p>
23+
24+
<pre>
25+
<strong>Input:</strong> s = &quot; &quot;
26+
<strong>Output:</strong> true
27+
<strong>Explanation:</strong> s is an empty string &quot;&quot; after removing non-alphanumeric characters.
28+
Since an empty string reads the same forward and backward, it is a palindrome.
29+
</pre>
30+
31+
<p>&nbsp;</p>
32+
<p><strong>Constraints:</strong></p>
33+
34+
<ul>
35+
<li><code>1 &lt;= s.length &lt;= 2 * 10<sup>5</sup></code></li>
36+
<li><code>s</code> consists only of printable ASCII characters.</li>
37+
</ul>

0 commit comments

Comments
 (0)