266.Palindrome-Permutation
266. Palindrome Permutation
题目地址
题目描述
Given a string, determine if a permutation of the string could form a palindrome.
Example 1:
Input: "code"
Output: false
Example 2:
Input: "aab"
Output: true
Example 3:
Input: "carerac"
Output: true代码
Approach #1 Brute Force
Approach #2 Using HashMap
Approach #3 Using Array
Approach #4 Single Pass
Approach #5 Using Set
Last updated