原文:[LeetCode 1177] Can Make Palindrome from Substring

Given a strings, we make queries on substrings ofs. For each queryqueries i left, right, k , we mayrearrangethe substrings left , ..., s right , and then chooseup tokof them to replace with any lowerc ...

2019-09-04 23:28 0 379 推荐指数:

查看详情

[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]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
[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 ...

Sat May 23 00:41:00 CST 2015 0 3235
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM