02 2016 档案
摘要:题目: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total
阅读全文
摘要:题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may co
阅读全文
摘要:题目: 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
阅读全文