上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: Ugly NumberWrite a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5... 阅读全文
posted @ 2015-08-28 17:51 Sean_le 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ... 阅读全文
posted @ 2015-08-24 20:01 Sean_le 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Repeated DNA SequencesAll DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it i... 阅读全文
posted @ 2015-08-24 14:54 Sean_le 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 4SumGiven an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum... 阅读全文
posted @ 2015-08-24 13:53 Sean_le 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 3SumGiven an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:El... 阅读全文
posted @ 2015-08-24 12:12 Sean_le 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the... 阅读全文
posted @ 2015-08-23 19:22 Sean_le 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Maximal RectangleGiven a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.这题的思路完全来源Largest... 阅读全文
posted @ 2015-08-23 17:24 Sean_le 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Largest Rectangle in HistogramGivennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of l... 阅读全文
posted @ 2015-08-20 19:10 Sean_le 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Sudoku SolverWrite a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that the... 阅读全文
posted @ 2015-08-19 20:01 Sean_le 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Group AnagramsGiven two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t... 阅读全文
posted @ 2015-08-19 18:46 Sean_le 阅读(173) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页