摘要: Description:Given an array of numbersnums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the tw... 阅读全文
posted @ 2015-09-27 22:32 Pickle 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Description:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You ma... 阅读全文
posted @ 2015-09-27 17:17 Pickle 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Description:Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf pat... 阅读全文
posted @ 2015-09-27 16:56 Pickle 阅读(128) 评论(0) 推荐(0) 编辑