苏觅云
苏觅云
全部文章
分类
题解(183)
归档
标签
去牛客网
登录
/
注册
苏觅云的博客
全部文章
(共180篇)
题解 | #树的子结构#
/** public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = v...
Java
2022-05-04
0
387
题解 | #二叉树的下一个结点#
/* public class TreeLinkNode { int val; TreeLinkNode left = null; TreeLinkNode right = null; TreeLinkNode next = null; TreeLinkNo...
Java
2022-05-04
0
326
题解 | #重建二叉树#
import java.util.*; /** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * T...
Java
2022-05-04
0
294
题解 | #二叉树的深度#
/** public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = v...
Java
2022-05-04
0
294
题解 | #剪绳子#
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @return...
Java
2022-05-04
0
232
题解 | #对称的二叉树#
/* public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = va...
Java
2022-05-04
0
275
题解 | #数值的整数次方#
public class Solution { public double Power(double base, int exponent) { if(exponent > 1 || exponent < -1) { int a = (in...
Java
2022-05-03
0
338
题解 | #复杂链表的复制#
/* public class RandomListNode { int label; RandomListNode next = null; RandomListNode random = null; RandomListNode(int label) { ...
Java
2022-05-03
0
296
题解 | #链表中环的入口结点#
/* public class ListNode { int val; ListNode next = null; ListNode(int val) { this.val = val; } } */ public class Solution {...
Java
2022-05-03
0
291
题解 | #链表中倒数最后k个结点#
import java.util.*; /* * public class ListNode { * int val; * ListNode next = null; * public ListNode(int val) { * this.val = val; * ...
Java
2022-05-03
0
321
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页