摘要: 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) 编辑