上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 34 下一页

2015年5月11日

Longest Valid Parentheses

摘要: Longest Valid Parentheses问题:Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses sub... 阅读全文

posted @ 2015-05-11 10:31 zhouzhou0615 阅读(160) 评论(0) 推荐(0) 编辑

2015年5月10日

Minimum Window Substring

摘要: Minimum Window Substring问题:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n)... 阅读全文

posted @ 2015-05-10 22:08 zhouzhou0615 阅读(132) 评论(0) 推荐(0) 编辑

Edit Distance

摘要: Edit Distance问题:Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)... 阅读全文

posted @ 2015-05-10 11:24 zhouzhou0615 阅读(215) 评论(0) 推荐(0) 编辑

2015年5月9日

Substring with Concatenation of All Words

摘要: Substring with Concatenation of All Words问题:You are given a string,s, and a list of words,words, that are all of the same length. Find all starting in... 阅读全文

posted @ 2015-05-09 16:09 zhouzhou0615 阅读(171) 评论(0) 推荐(0) 编辑

Insert Interval

摘要: Insert Interval问题:Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the interv... 阅读全文

posted @ 2015-05-09 15:03 zhouzhou0615 阅读(133) 评论(0) 推荐(0) 编辑

2015年5月8日

Text Justification

摘要: Text Justification问题:iven an array of words and a lengthL, format the text such that each line has exactlyLcharacters and is fully (left and right) ju... 阅读全文

posted @ 2015-05-08 21:21 zhouzhou0615 阅读(113) 评论(0) 推荐(0) 编辑

Wildcard Matching

摘要: Wildcard Matching问题:'?' Matches any single character.'*' Matches any sequence of characters (including the empty sequence).The matching should cover t... 阅读全文

posted @ 2015-05-08 15:38 zhouzhou0615 阅读(144) 评论(0) 推荐(0) 编辑

2015年5月7日

Valid Number

摘要: Valid Number问题:Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for t... 阅读全文

posted @ 2015-05-07 22:46 zhouzhou0615 阅读(157) 评论(0) 推荐(0) 编辑

Multiply Strings

摘要: Multiply Strings问题:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily lar... 阅读全文

posted @ 2015-05-07 16:04 zhouzhou0615 阅读(221) 评论(0) 推荐(0) 编辑

Course Schedule

摘要: Course Schedule问题:There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course ... 阅读全文

posted @ 2015-05-07 15:17 zhouzhou0615 阅读(134) 评论(0) 推荐(0) 编辑

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 34 下一页

导航