You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Given a string <code>s</code>, return <code>true</code> <em>if a permutation of the string could form a </em><spandata-keyword="palindrome-string"><em><strong>palindrome</strong></em></span><em> and </em><code>false</code><em> otherwise</em>.</p>
2
+
3
+
<p> </p>
4
+
<p><strongclass="example">Example 1:</strong></p>
5
+
6
+
<pre>
7
+
<strong>Input:</strong> s = "code"
8
+
<strong>Output:</strong> false
9
+
</pre>
10
+
11
+
<p><strongclass="example">Example 2:</strong></p>
12
+
13
+
<pre>
14
+
<strong>Input:</strong> s = "aab"
15
+
<strong>Output:</strong> true
16
+
</pre>
17
+
18
+
<p><strongclass="example">Example 3:</strong></p>
19
+
20
+
<pre>
21
+
<strong>Input:</strong> s = "carerac"
22
+
<strong>Output:</strong> true
23
+
</pre>
24
+
25
+
<p> </p>
26
+
<p><strong>Constraints:</strong></p>
27
+
28
+
<ul>
29
+
<li><code>1 <= s.length <= 5000</code></li>
30
+
<li><code>s</code> consists of only lowercase English letters.</li>
0 commit comments