摘要:
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The... 阅读全文
posted @ 2014-07-25 22:06
SunshineAtNoon
阅读(345)
评论(0)
推荐(0)
摘要:
Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially... 阅读全文
posted @ 2014-07-25 17:30
SunshineAtNoon
阅读(190)
评论(0)
推荐(0)
摘要:
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega... 阅读全文
posted @ 2014-07-25 16:53
SunshineAtNoon
阅读(256)
评论(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 @ 2014-07-25 15:43
SunshineAtNoon
阅读(226)
评论(0)
推荐(0)
摘要:
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on... 阅读全文
posted @ 2014-07-25 12:07
SunshineAtNoon
阅读(198)
评论(0)
推荐(0)
摘要:
Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ... 阅读全文
posted @ 2014-07-25 11:15
SunshineAtNoon
阅读(216)
评论(0)
推荐(0)
摘要:
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.题解,很巧妙的一道题,对于一个0-1矩阵,它的每一行及以上都可以看... 阅读全文
posted @ 2014-07-25 10:42
SunshineAtNoon
阅读(295)
评论(0)
推荐(0)

浙公网安备 33010602011771号