摘要: 题目: 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 @ 2017-02-18 23:59 panini 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. https://leetcode.com/problems/convert-sorted-array-t 阅读全文
posted @ 2017-02-18 03:04 panini 阅读(109) 评论(0) 推荐(0) 编辑