苏觅云
苏觅云
全部文章
题解
归档
标签
去牛客网
登录
/
注册
苏觅云的博客
全部文章
/ 题解
(共179篇)
题解 | #连续最大和#
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.n...
Java
2022-05-19
1
555
题解 | #扭蛋机#
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.n...
Java
2022-05-19
0
433
题解 | #序列找数#
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.n...
Java
2022-05-19
0
342
题解 | #懂二进制#
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param m int整型 * @param ...
Java
2022-05-19
1
302
题解 | #懂二进制#
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param m int整型 * @param ...
Java
2022-05-19
0
288
题解 | #数字在升序数组中出现的次数#
public class Solution { public int GetNumberOfK(int [] array , int k) { if(array == null || array.length == 0) { return 0; ...
Java
2022-05-19
0
284
题解 | #构建乘积数组#
public class Solution { public int[] multiply(int[] A) { int N = A.length; int[] ls = new int[N]; ls[0] = A[0]; fo...
Java
2022-05-18
0
251
题解 | #构建乘积数组#
import java.util.ArrayList; public class Solution { public int[] multiply(int[] A) { int[] B = new int[A.length]; for (int...
Java
2022-05-18
0
222
题解 | #二叉搜索树的最近公共祖先#
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * public TreeNode(int v...
Java
2022-05-17
0
302
题解 | #判断是不是平衡二叉树#
public class Solution { boolean isBa = true; public boolean IsBalanced_Solution(TreeNode root) { isBa = true; height(root); ...
Java
2022-05-17
0
291
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页