Waiting Persistent Accumulation Surpass

2017-02-15

题目要求Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated)..

2017-02-13

题目要求One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node’s value. If it is a null..

2017-02-11

题目要求Given n, how many structurally unique BST’s (binary search trees) that store values 1…n? For example,Given n = 3, there are a total of 5 unique ..

2017-02-10

题目要求Given a string s, find the longest palindromic subsequence’s length in s. You may assume that the maximum length of s is 1000. Example 1:Input: ..

题目要求You are given a list of non-negative integers, a1, a2, …, an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choo..

2017-02-08

题目要求Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2..

2017-02-07

题目要求You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for ..

2017-01-17

题目要求Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target nu..