1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (English)/回文排列(English) [palindrome-permutation-lcci].html

13 lines
522 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>Given a string, write a function to check if it is a permutation of a palindrome. A palindrome is a word or phrase that is the same forwards and backwards. A permutation is a rearrangement of letters. The palindrome does not need to be limited to just dictionary words.</p>
<p>&nbsp;</p>
<p><strong>Example1: </strong></p>
<pre>
<strong>Input: &quot;</strong>tactcoa&quot;
<strong>Output: </strong>truepermutations: &quot;tacocat&quot;&quot;atcocta&quot;, etc.
</pre>
<p>&nbsp;</p>