原文:[LeetCode] Palindrome Permutation

Problem Description: Given a string, determine if a permutation of the string could form a palindrome. For example, code gt False, aab gt True, carerac gt True. Hint: Consider the palindromes of odd v ...

2015-08-21 17:41 0 3955 推荐指数:

查看详情

Leetcode: Palindrome Partitioning II

参考:http://www.cppblog.com/wicbnu/archive/2013/03/18/198565.html 我太喜欢用dfs和回溯法了,但是这些暴力的方法加上剪枝之后复杂度依然是 ...

Sun Sep 01 04:15:00 CST 2013 1 3194
[leetcode]Permutation Sequence @ Python

原题地址:https://oj.leetcode.com/submissions/detail/5341904/ 题意: The set [1,2,3,…,n] contains a total of n! unique permutations. By listing ...

Fri Jun 13 19:48:00 CST 2014 0 4294
[LeetCode] Palindrome Number

Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you ...

Tue Nov 13 19:16:00 CST 2012 1 9287
[leetcode]Valid Palindrome @ Python

原题地址:https://oj.leetcode.com/problems/valid-palindrome/ 题意: Given a string, determine if it is a palindrome, considering only alphanumeric ...

Tue Jun 03 23:39:00 CST 2014 0 3156
[leetcode]Palindrome Number @ Python

原题地址:https://oj.leetcode.com/problems/palindrome-number/ 题意: Determine whether an integer is a palindrome. Do this without extra space. click ...

Tue Jun 10 18:12:00 CST 2014 0 3751
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM