摘要:
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] 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文