摘要:
Given a set of distinct integers, return all possible subsets. Notice Elements in a subset must be in non-descending order. The solution set must not 阅读全文
posted @ 2017-08-08 13:26
Review->Improve
阅读(293)
评论(0)
推荐(0)
摘要:
Given a set of non negative integers and a target value, find if there exists a subset in the given set whose sum is target. Solution 1. Enumerate all 阅读全文
posted @ 2017-08-08 12:50
Review->Improve
阅读(558)
评论(0)
推荐(0)
摘要:
Given an array, write a program to generate a random permuation of array elements. This question is also asked as "shuffle a deck of cards" or "random 阅读全文
posted @ 2017-08-08 02:48
Review->Improve
阅读(203)
评论(0)
推荐(0)
摘要:
Given a binary tree, find the maximum depth or height of this tree. Solution 1. In order traversal to count the maximum depth 1 import java.util.Linke 阅读全文
posted @ 2017-08-08 02:27
Review->Improve
阅读(267)
评论(0)
推荐(0)
摘要:
Given a BST whose keys are integers. Find the inorder successor and predecessor of a given key. In case the given key is not found in the BST, return 阅读全文
posted @ 2017-08-08 02:05
Review->Improve
阅读(452)
评论(0)
推荐(0)

浙公网安备 33010602011771号