qingcheng奕  

2014年7月3日

摘要: https://oj.leetcode.com/problems/palindrome-partitioning/给定一个字符串 s,求所有的子串组合,每个子串都是回文的。比如,aba: {a,b,a},{aba}对于这类问题(对一个串的划分)基本上就是用递归。首先设一个 record 数组,记录中... 阅读全文
posted @ 2014-07-03 19:40 qingcheng奕 阅读(209) 评论(0) 推荐(0) 编辑
 
摘要: https://oj.leetcode.com/problems/palindrome-number/判断是否为回文数取每一位存到vector中,再判断负数不是回文数class Solution {public: bool isPalindrome(int x) { vector... 阅读全文
posted @ 2014-07-03 15:50 qingcheng奕 阅读(127) 评论(0) 推荐(0) 编辑