摘要: 原题链接在这里:https://leetcode.com/problems/longest-palindromic-substring/ 题目: Given a string s, find the longest palindromic substring in s. You may assume 阅读全文
posted @ 2015-10-29 22:20 Dylan_Java_NYC 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/restore-ip-addresses/ 题目: Given a string containing only digits, restore it by returning all possible valid IP a 阅读全文
posted @ 2015-10-29 21:32 Dylan_Java_NYC 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/number-of-digit-one/每10个数, 有一个个位是1, 每100个数, 有10个十位是1, 每1000个数, 有100个百位是1. 做一个循环, 每次计算单个位上1得总个数(个位,十位, 百位).例子:以算百... 阅读全文
posted @ 2015-10-29 13:07 Dylan_Java_NYC 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/n-queens-ii/ 题目: Follow up for N-Queens problem. Now, instead outputting board configurations, return the total 阅读全文
posted @ 2015-10-29 12:34 Dylan_Java_NYC 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/letter-combinations-of-a-phone-number/ 题目: Given a digit string, return all possible letter combinations that th 阅读全文
posted @ 2015-10-29 12:00 Dylan_Java_NYC 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/bitwise-and-of-numbers-range/ 题目: Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND o 阅读全文
posted @ 2015-10-29 10:55 Dylan_Java_NYC 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/peeking-iterator/ 题目: Given an Iterator class interface with methods: next() and hasNext(), design and implement 阅读全文
posted @ 2015-10-29 10:20 Dylan_Java_NYC 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/expression-add-operators/ 题目: Given a string that contains only digits 0-9 and a target value, return all possib 阅读全文
posted @ 2015-10-29 04:44 Dylan_Java_NYC 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/different-ways-to-add-parentheses/ 题目: Given a string of numbers and operators, return all possible results from 阅读全文
posted @ 2015-10-29 02:40 Dylan_Java_NYC 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/kth-largest-element-in-an-array/ 题目: Find the kth largest element in an unsorted array. Note that it is the kth 阅读全文
posted @ 2015-10-29 01:07 Dylan_Java_NYC 阅读(480) 评论(0) 推荐(0) 编辑