苏觅云
苏觅云
全部文章
题解
归档
标签
去牛客网
登录
/
注册
苏觅云的博客
全部文章
/ 题解
(共179篇)
题解 | #把字符串转换成整数(atoi)#
import java.util.*; class Solution { public boolean isNumChar(char ch) { return ch >= '0' && ch <= '9'; } public i...
Java
2022-05-07
0
340
题解 | #把字符串转换成整数#
public class Solution { public boolean isNumChar(char ch) { return ch >= '0' && ch <= '9'; } public int StrToInt(Str...
Java
2022-05-07
0
327
题解 | #二叉树中和为某一值的路径(二)#
import java.util.ArrayList; import java.util.LinkedList; /** public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = ...
Java
2022-05-06
0
346
题解 | #输入整型数组和排序标识,对其元素按照升序或降序进行排序#
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-06
0
374
题解 | #二叉搜索树的后序遍历序列#
public class Solution { public boolean VerifySquenceOfBST(int [] sequence) { if(sequence == null || sequence.length == 0) { re...
Java
2022-05-05
0
293
题解 | #按之字形顺序打印二叉树#
import java.util.ArrayList; import java.util.LinkedList; /* public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = n...
Java
2022-05-05
0
302
题解 | #把二叉树打印成多行#
import java.util.ArrayList; import java.util.LinkedList; /* public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = ...
Java
2022-05-04
0
289
题解 | #从上往下打印二叉树#
import java.util.ArrayList; import java.util.LinkedList; /** public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = n...
Java
2022-05-04
0
290
题解 | #二叉树的镜像#
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * public TreeNode(int v...
Java
2022-05-04
0
251
题解 | #树的子结构#
/** 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
首页
上一页
2
3
4
5
6
7
8
9
10
11
下一页
末页