上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 33 下一页
摘要: Given an array ofnintegersnumsand atarget, find the number of index tripletsi, j, kwith0 <= i < j < k < nthat satisfy the conditionnums[i] + nums[j] +... 阅读全文
posted @ 2016-01-04 06:28 Hygeia 阅读(165) 评论(0) 推荐(0)
摘要: Given twosparse matricesAandB, return the result ofAB.You may assume thatA's column number is equal toB's row number.Example:A = [ [ 1, 0, 0], [-1, ... 阅读全文
posted @ 2016-01-04 05:24 Hygeia 阅读(185) 评论(0) 推荐(0)
摘要: 1. ArrayList, LinkedList(1) 错:Queue queue = new ArrayList();//error: incompatible types: ArrayList cannot be converted to Queue对:Queue queue = new Lin... 阅读全文
posted @ 2016-01-03 11:57 Hygeia 阅读(535) 评论(0) 推荐(0)
摘要: Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.:http://sudoku.com.au/TheRules.aspxThe Sudoku board could be partially filled,... 阅读全文
posted @ 2016-01-02 12:38 Hygeia 阅读(153) 评论(0) 推荐(0)
摘要: Given an array of strings, group anagrams together.For example, given:["eat", "tea", "tan", "ate", "nat", "bat"],Return:[ ["ate", "eat","tea"], ["... 阅读全文
posted @ 2016-01-02 12:30 Hygeia 阅读(215) 评论(0) 推荐(0)
摘要: Given a collection ofdistinctnumbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3... 阅读全文
posted @ 2016-01-02 11:35 Hygeia 阅读(213) 评论(0) 推荐(0)
摘要: Suppose you are at a party withnpeople (labeled from0ton - 1) and among them, there may exist one celebrity. The definition of a celebrity is that all... 阅读全文
posted @ 2016-01-02 07:33 Hygeia 阅读(123) 评论(0) 推荐(0)
摘要: There are a row ofnhouses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certain ... 阅读全文
posted @ 2016-01-02 06:57 Hygeia 阅读(129) 评论(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-01-01 12:18 Hygeia 阅读(173) 评论(0) 推荐(0)
摘要: Design and implement a TwoSum class. It should support the following operations:addandfind.add- Add the number to an internal data structure.find- Fin... 阅读全文
posted @ 2016-01-01 11:52 Hygeia 阅读(192) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 33 下一页