Fork me on GitHub
摘要: 题目: 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 阅读全文
posted @ 2016-02-29 20:12 __Neo 阅读(1119) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 阅读全文
posted @ 2016-02-29 16:54 __Neo 阅读(4156) 评论(2) 推荐(1) 编辑
摘要: 题目: 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 阅读全文
posted @ 2016-02-29 10:30 __Neo 阅读(203) 评论(0) 推荐(0) 编辑