2015年1月21日

LeetCode-94 Binary Tree Inorder Traversal

摘要: Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note... 阅读全文

posted @ 2015-01-21 23:47 linxiong1991 阅读(96) 评论(0) 推荐(0)

LeetCode-121 Best Time to Buy and Sell Stock

摘要: Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie... 阅读全文

posted @ 2015-01-21 21:20 linxiong1991 阅读(117) 评论(0) 推荐(0)

导航