随笔分类 -  LeetCode

[LeetCode系列]Evaluate Reverse Polish Notation
摘要:Evaluate Reverse Polish NotationValid operators are+,-,*,/. Each operand may be an integer or another expression.Some examples: ["2", "1", "+", "3", "*"] -> ((2 + 1) * 3) -> 9 ["4", "13", "5", "/", " 阅读全文

posted @ 2014-04-10 16:56 Jam_01 阅读(151) 评论(0) 推荐(0)

[LeetCode系列]Populating Next Right Pointers in Each Node II
摘要:将会陆续放出本人刷LeetCode所见到的一些比较有趣或者不会的题目的随笔。Note:You may only use constant extra space.For example,Given the following binary tree, 1 / \ 2 3 / \ \ 4 5 7After calling your function, the tree should look like: 1 -> NULL / \ 2 -> 3 -> NULL / \ ... 阅读全文

posted @ 2014-03-29 22:33 Jam_01 阅读(524) 评论(0) 推荐(0)

导航