上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页
摘要: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the dept 阅读全文
posted @ 2016-03-14 15:05 哥布林工程师 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Given n items with size Ai and value Vi, and a backpack with size m. What's the maximum value can you put into the backpack? Given 4 items with size [ 阅读全文
posted @ 2016-03-14 15:00 哥布林工程师 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Given n items with size Ai, an integer m denotes the size of a backpack. How full you can fill this backpack? If we have 4 items with size [2, 3, 5, 7 阅读全文
posted @ 2016-03-14 14:48 哥布林工程师 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Given an array of strings, return all groups of strings that are anagrams. Given ["lint", "intl", "inlt", "code"], return["lint", "inlt", "intl"]. Giv 阅读全文
posted @ 2016-03-14 14:37 哥布林工程师 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Design a data structure that supports the following two operations: addWord(word) and search(word) search(word) can search a literal word or a regular 阅读全文
posted @ 2016-03-14 13:51 哥布林工程师 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Given an array S of n integers, are there elements a, b,c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which 阅读全文
posted @ 2016-03-12 07:27 哥布林工程师 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. 阅读全文
posted @ 2016-03-12 06:49 哥布林工程师 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Given an array S of n integers, are there elements a, b,c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of z 阅读全文
posted @ 2016-03-12 06:29 哥布林工程师 阅读(201) 评论(0) 推荐(0) 编辑
摘要: For a given source string and a target string, you should output the first index(from 0) of target string in source string. If target does not exist i 阅读全文
posted @ 2016-03-11 07:50 哥布林工程师 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Determine whether a Sudoku is valid. The Sudoku board could be partially filled, where empty cells are filled with the character .. The following part 阅读全文
posted @ 2016-03-11 06:57 哥布林工程师 阅读(129) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页