LeetCode---String
摘要:
Count and Say 思路:递归求出n 1时的字符串,然后双指针算出每个字符的次数,拼接在结果后面 public String countAndSay(int n) { if(n == 1) return "1"; String front = countAndSay(n 1); int i 阅读全文
posted @ 2016-12-20 14:58 LeonNew 阅读(132) 评论(0) 推荐(0)