Two Sum - Closest to target 获取链接 Facebook X Pinterest 电子邮件 其他应用 十月 30, 2017 思路: 好无聊的题,打擂台。。。。 获取链接 Facebook X Pinterest 电子邮件 其他应用 评论
Binary Tree Preorder Traversal 九月 18, 2017 思路: 递归版太简单了。迭代版需要用到stack,由于preorder 是root-> left -> right。所以stack push的顺序是反的。先检查right 是否为空,push right, 再处理left。 阅读全文
评论
发表评论