JasonChang

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年11月28日

摘要: 1 public class Solution { 2 public int longestConsecutive(int[] num) { 3 // IMPORTANT: Please reset any member data you declared, as 4 // the same Solution instance will be reused for each test case. 5 int len = num.length; 6 if(len table = new HashMap(); 9 ... 阅读全文
posted @ 2013-11-28 08:41 JasonChang 阅读(171) 评论(0) 推荐(0) 编辑

摘要: String equals() == 1 public class Solution { 2 public int evalRPN(String[] tokens) { 3 // IMPORTANT: Please reset any member data you declared, as 4 // the same Solution instance will be reused for each test case. 5 Stack stack = new Stack(); 6 if(tokens == null |... 阅读全文
posted @ 2013-11-28 02:44 JasonChang 阅读(171) 评论(0) 推荐(0) 编辑