上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 38 下一页
摘要: Given a binary tree, generate all root to leaf paths of a binary tree. Example: Example Tree The output for the above example is [[1, 2, 4], [1, 2, 5] 阅读全文
posted @ 2017-10-03 00:34 Review->Improve 阅读(188) 评论(0) 推荐(0)
摘要: Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or * between the d 阅读全文
posted @ 2017-09-29 07:26 Review->Improve 阅读(265) 评论(0) 推荐(0)
摘要: Given A binary Tree, how do you remove all the half nodes (which has only one child)? Note leaves should not be touched as they have both children as 阅读全文
posted @ 2017-09-29 01:47 Review->Improve 阅读(197) 评论(0) 推荐(0)
摘要: Given a digit string excluded 01, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on 阅读全文
posted @ 2017-09-28 11:39 Review->Improve 阅读(300) 评论(0) 推荐(0)
摘要: Given a list of numbers with duplicate number in it. Find all unique permutations. Have you met this question in a real interview? Yes Given a list of 阅读全文
posted @ 2017-09-28 10:15 Review->Improve 阅读(306) 评论(0) 推荐(0)
摘要: Given a list of numbers, return all possible permutations. You can assume that there is no duplicate numbers in the list. Given a list of numbers, ret 阅读全文
posted @ 2017-09-28 05:47 Review->Improve 阅读(160) 评论(0) 推荐(0)
摘要: Given n friends, each one can remain single or can be paired up with some other friend. Each friend can be paired only once. Find out the total number 阅读全文
posted @ 2017-09-28 04:58 Review->Improve 阅读(733) 评论(0) 推荐(0)
摘要: Given a list of Connections, which is the Connection class (the city name at both ends of the edge and a cost between them), find some edges, connect 阅读全文
posted @ 2017-09-27 12:55 Review->Improve 阅读(1780) 评论(0) 推荐(1)
摘要: Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O''s into 'X''s in that surround 阅读全文
posted @ 2017-09-27 06:42 Review->Improve 阅读(236) 评论(0) 推荐(0)
摘要: A non-negative numbers can be regarded as product of its factors.Write a function that takes an integer n and return all possible combinations of its 阅读全文
posted @ 2017-09-26 13:49 Review->Improve 阅读(563) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 38 下一页