Title
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: class Solution { public int scoreOfParentheses(String S) { //定义 ( 为 0 Deque<Integer> s = new LinkedList<>(); s.push(0); for(char c : S.toCharArray()) 阅读全文
posted @ 2020-07-15 20:58 .geek 阅读(162) 评论(0) 推荐(0) 编辑
摘要: class Solution { public boolean validateStackSequences(int[] pushed, int[] popped) { Deque<Integer> q = new LinkedList<>(); int N = pushed.length; int 阅读全文
posted @ 2020-07-15 20:47 .geek 阅读(103) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ 阅读全文
posted @ 2020-07-15 20:33 .geek 阅读(110) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ 阅读全文
posted @ 2020-07-15 20:16 .geek 阅读(112) 评论(0) 推荐(0) 编辑
摘要: /* // Definition for a Node. class Node { public int val; public List<Node> children; public Node() {} public Node(int _val) { val = _val; } public No 阅读全文
posted @ 2020-07-15 19:47 .geek 阅读(205) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode() {} * TreeNode(int val) { 阅读全文
posted @ 2020-07-15 19:36 .geek 阅读(129) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ 阅读全文
posted @ 2020-07-15 17:58 .geek 阅读(111) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ 阅读全文
posted @ 2020-07-15 17:44 .geek 阅读(96) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-07-15 10:18 .geek 阅读(0) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ 阅读全文
posted @ 2020-07-14 22:50 .geek 阅读(119) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页