上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: Problem:Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have... 阅读全文
posted @ 2015-08-27 12:43 airforce 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Problem:A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded messa... 阅读全文
posted @ 2015-08-27 09:56 airforce 阅读(433) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a 2D board containing'X'and'O', capture all regions surrounded by'X'.A region is captured by flipping all'O's into'X's in that surrounde... 阅读全文
posted @ 2015-08-27 06:03 airforce 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Problem:Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in th... 阅读全文
posted @ 2015-08-27 03:42 airforce 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest fo... 阅读全文
posted @ 2015-08-26 12:09 airforce 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Problem:All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes us... 阅读全文
posted @ 2015-08-26 10:51 airforce 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecting a... 阅读全文
posted @ 2015-08-26 09:33 airforce 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Problem:Given an array containingndistinct numbers taken from0, 1, 2, ..., n, find the one that is missing from the array.For example,Givennums=[0, 1,... 阅读全文
posted @ 2015-08-26 04:29 airforce 阅读(812) 评论(0) 推荐(0) 编辑
摘要: Problem:Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (incl... 阅读全文
posted @ 2015-08-26 02:53 airforce 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Problem:Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The ... 阅读全文
posted @ 2015-08-25 00:41 airforce 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页