摘要: import java.util.*; public class Solution { public int evalRPN(String[] tokens) { //int temp = 0; Stack stack = new Stack(); for( int i = 0; i < tokens.length; i++)... 阅读全文
posted @ 2019-06-08 16:38 紫色的雪 阅读(98) 评论(0) 推荐(0)
摘要: /** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ import java.util.*; public class... 阅读全文
posted @ 2019-06-08 14:13 紫色的雪 阅读(161) 评论(0) 推荐(0)