牛马ID
牛马ID
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛马ID的博客
全部文章
/ 题解
(共81篇)
题解 | #二叉树的镜像#
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * public TreeNode(int v...
Java
2022-04-21
0
267
题解 | #合并二叉树#
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * } */ public class Sol...
Java
2022-04-21
0
226
题解 | #对称的二叉树#
/* public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = va...
Java
2022-04-21
0
272
题解 | #二叉树中和为某一值的路径(一)#
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * } */ public class Sol...
Java
2022-04-21
0
246
题解 | #字符串通配符#
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String sour...
Java
2022-04-18
0
313
题解 | #按之字形顺序打印二叉树#
import java.util.*; /* public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { ...
Java
2022-04-12
0
253
题解 | #求二叉树的层序遍历#
BFS public ArrayList<ArrayList<Integer>> levelOrder (TreeNode root) { ArrayList<ArrayList<Integer>> list = new Ar...
Java
2022-04-12
0
308
题解 | #二叉树的后序遍历#
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * public TreeNode(int v...
Java
2022-04-12
0
298
题解 | #二叉树的中序遍历#
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * public TreeNode(int v...
Java
2022-04-12
0
302
题解 | #二叉树的前序遍历#
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * public TreeNode(int v...
Java
2022-04-12
0
385
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页