牛马ID
牛马ID
全部文章
分类
题解(81)
归档
标签
去牛客网
登录
/
注册
牛马ID的博客
全部文章
(共135篇)
题解 | #二叉搜索树的最近公共祖先#
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * public TreeNode(int v...
Java
2022-04-23
0
247
题解 | #判断是不是平衡二叉树#
public class Solution { public boolean IsBalanced_Solution(TreeNode root) { if(root == null) return true; if(Math.abs(getHegih(roo...
Java
2022-04-23
0
227
题解 | #判断是不是完全二叉树#
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * public TreeNode(int v...
Java
2022-04-21
0
302
题解 | #判断是不是二叉搜索树#
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * public TreeNode(int v...
Java
2022-04-21
0
292
题解 | #二叉树的镜像#
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
首页
上一页
5
6
7
8
9
10
11
12
13
14
下一页
末页