上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 1. How to create generic array List<Integer>[] array = new List[len]; import java.lang.reflect.Array; ArrayList<Integer>[] array = (ArrayList<Integer> 阅读全文
posted @ 2016-05-29 14:59 新一代的天皇巨星 阅读(150) 评论(0) 推荐(0)
摘要: 17. Letter Combinations of a Phone Number Given a digit string, return all possible letter combinations that the number could represent. A mapping of 阅读全文
posted @ 2016-05-25 13:22 新一代的天皇巨星 阅读(215) 评论(0) 推荐(0)
摘要: 46. Permutations Given a collection of distinct numbers, return all possible permutations. For example,[1,2,3] have the following permutations:[1,2,3] 阅读全文
posted @ 2016-05-10 13:43 新一代的天皇巨星 阅读(262) 评论(0) 推荐(0)
摘要: 284. Peeking Iterator Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the pe 阅读全文
posted @ 2016-05-08 14:25 新一代的天皇巨星 阅读(183) 评论(0) 推荐(0)
摘要: 136. Single Number Given an array of integers, every element appears twice except for one. Find that single one. Your algorithm should have a linear r 阅读全文
posted @ 2016-05-08 13:26 新一代的天皇巨星 阅读(184) 评论(0) 推荐(0)
摘要: 286. Missing Number Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example, 阅读全文
posted @ 2016-05-08 13:18 新一代的天皇巨星 阅读(198) 评论(0) 推荐(0)
摘要: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example:Given the below binary tree and sum 阅读全文
posted @ 2016-05-06 13:02 新一代的天皇巨星 阅读(161) 评论(0) 推荐(0)
摘要: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文
posted @ 2016-05-02 13:17 新一代的天皇巨星 阅读(162) 评论(0) 推荐(0)
摘要: 2. Add Two Numbers You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their node 阅读全文
posted @ 2016-05-01 13:05 新一代的天皇巨星 阅读(214) 评论(0) 推荐(0)
摘要: Given a binary tree, flatten it to a linked list in-place. For example,Given 1 / \ 2 5 / \ \ 3 4 6 The flattened tree should look like: 1 \ 2 \ 3 \ 4 阅读全文
posted @ 2016-04-30 13:52 新一代的天皇巨星 阅读(129) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页