原文:[LeetCode] Shortest Palindrome

Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by performing this transformation. For example ...

2015-05-22 16:41 0 3235 推薦指數:

查看詳情

LeetCode】214. Shortest Palindrome

Shortest Palindrome Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return ...

Sun Jul 05 06:04:00 CST 2015 3 2583
[LeetCode] Palindrome Permutation

Problem Description: Given a string, determine if a permutation of the string could form a palindrome. For example,"code" -> False, "aab" -> ...

Sat Aug 22 01:41:00 CST 2015 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] 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] Shortest Word Distance

Problem Description: Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. ...

Thu Aug 06 00:02:00 CST 2015 0 3693
[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