Fork me on GitHub

03 2016 档案

摘要:题目: A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded me 阅读全文
posted @ 2016-03-30 21:22 __Neo 阅读(914) 评论(0) 推荐(0) 编辑
摘要:题目: Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2, 阅读全文
posted @ 2016-03-28 14:57 __Neo 阅读(189) 评论(0) 推荐(0) 编辑
摘要:题目: Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the 阅读全文
posted @ 2016-03-25 10:36 __Neo 阅读(1491) 评论(0) 推荐(0) 编辑
摘要: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 useful to 阅读全文
posted @ 2016-03-22 14:14 __Neo 阅读(760) 评论(0) 推荐(0) 编辑
摘要:The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, We get the following sequenc 阅读全文
posted @ 2016-03-22 10:41 __Neo 阅读(2369) 评论(0) 推荐(0) 编辑
摘要:Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the f 阅读全文
posted @ 2016-03-21 14:22 __Neo 阅读(534) 评论(0) 推荐(0) 编辑
摘要:Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: Note: 这道题要把所有字母组成相同的单词归为一类 阅读全文
posted @ 2016-03-18 11:16 __Neo 阅读(2135) 评论(0) 推荐(0) 编辑
摘要:Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. For example: Given n = 13, Retur 阅读全文
posted @ 2016-03-13 16:37 __Neo 阅读(168) 评论(0) 推荐(0) 编辑
摘要:题目: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Follow up: Did you use extra space? A straight forwa 阅读全文
posted @ 2016-03-03 15:00 __Neo 阅读(411) 评论(0) 推荐(0) 编辑
摘要:题目: Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- 阅读全文
posted @ 2016-03-03 14:12 __Neo 阅读(262) 评论(0) 推荐(0) 编辑
摘要:Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. Th 阅读全文
posted @ 2016-03-03 11:11 __Neo 阅读(283) 评论(0) 推荐(0) 编辑
摘要:题目: According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician J 阅读全文
posted @ 2016-03-02 20:24 __Neo 阅读(1355) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示