上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页
摘要: 32. Longest Valid ParenthesesGiven a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses su... 阅读全文
posted @ 2015-12-07 19:31 zengzy 阅读(138) 评论(0) 推荐(0)
摘要: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo... 阅读全文
posted @ 2015-12-07 18:07 zengzy 阅读(145) 评论(0) 推荐(0)
摘要: 一.SubsetsGiven a set of distinct integers,nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set... 阅读全文
posted @ 2015-12-06 22:22 zengzy 阅读(187) 评论(0) 推荐(0)
摘要: A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point ... 阅读全文
posted @ 2015-12-06 22:19 zengzy 阅读(186) 评论(0) 推荐(0)
摘要: Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon... 阅读全文
posted @ 2015-12-06 22:17 zengzy 阅读(263) 评论(0) 推荐(0)
摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2... 阅读全文
posted @ 2015-12-06 22:04 zengzy 阅读(253) 评论(0) 推荐(0)
摘要: 一.Roman to IntegerGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.罗马数字是阿拉伯数字传入之前使用的一种数码。罗马数字... 阅读全文
posted @ 2015-12-06 19:53 zengzy 阅读(199) 评论(0) 推荐(0)
摘要: Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Update (2015-02-12):For C prog... 阅读全文
posted @ 2015-12-06 19:02 zengzy 阅读(221) 评论(0) 推荐(0)
摘要: Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The... 阅读全文
posted @ 2015-12-06 15:53 zengzy 阅读(165) 评论(0) 推荐(0)
摘要: Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters (including the e... 阅读全文
posted @ 2015-12-04 13:37 zengzy 阅读(426) 评论(0) 推荐(1)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页
levels of contents