苏觅云
苏觅云
全部文章
题解
归档
标签
去牛客网
登录
/
注册
苏觅云的博客
全部文章
/ 题解
(共130篇)
题解 | #二叉树的深度#
/** public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = v...
Java
2022-05-04
0
295
题解 | #剪绳子#
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @return...
Java
2022-05-04
0
228
题解 | #对称的二叉树#
/* public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = va...
Java
2022-05-04
0
270
题解 | #数值的整数次方#
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
292
题解 | #链表中倒数最后k个结点#
import java.util.*; /* * public class ListNode { * int val; * ListNode next = null; * public ListNode(int val) { * this.val = val; * ...
Java
2022-05-03
0
316
题解 | #删除链表中重复的结点#
/* public class ListNode { int val; ListNode next = null; ListNode(int val) { this.val = val; } } */ public class Solution {...
Java
2022-05-03
0
372
题解 | #删除链表的节点#
import java.util.*; /* * public class ListNode { * int val; * ListNode next = null; * public ListNode(int val) { * this.val = val; * ...
Java
2022-05-03
0
359
题解 | #左旋转字符串#
public class Solution { public String LeftRotateString(String s,int n) { if(s == null || s.length() < 2) { return s; ...
Java
2022-05-03
0
285
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页