奶味拳师
奶味拳师
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
奶味拳师的博客
全部文章
(共3篇)
题解 | #二叉树的后序遍历#
使用全局静态list存储数据。按照左右中向list中添加数字。 ArrayList<Integer> list = new ArrayList<Integer>(); public ArrayList<Integer> postorderTraversal...
2021-09-01
0
515
题解 | #后缀表达式求值#
注意点:1.减法和除法都是减(除)数先入栈,被减(除)数后入栈,因此是op2-(/)op1 代码块 import java.util.*; public class Solution { /** * * @param tokens string字符串一维数组 ...
2021-08-31
2
611
题解 | #二叉树的最小深度#
public class Solution { /** * * @param root TreeNode类 * @return int整型 */ public int run (TreeNode root) { // write code h...
2021-08-31
0
471