摘要:
Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example, given s = "aab",Return [ ["aa","b"], ["a","a","b"] ] DFS 求解全解神器class Solution {public: bo 阅读全文
posted @ 2013-07-27 12:14
冰点猎手
阅读(166)
评论(0)
推荐(0)
摘要:
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinking of converting the integer to string, note the restriction of using extra space.You could also try reversing an integer. However, if you have solved 阅读全文
posted @ 2013-07-27 11:39
冰点猎手
阅读(225)
评论(0)
推荐(0)