演丶我的人生
演丶我的人生
全部文章
分类
题解(9)
归档
标签
去牛客网
登录
/
注册
演丶我的人生的博客
全部文章
(共8篇)
题解 | #重排链表#
参考: JAVA详细版 重排链表 /** * Definition for singly-linked list. * class ListNode { * int val; * ListNode next; * ListNode(int x) { * ...
Java
2021-09-18
0
304
题解 | #大数加法#
import java.util.*; public class Solution { public String solve (String s, String t) { StringBuilder stringBuilder = new StringBuilder()...
Java
2021-09-17
0
230
【剑指offer】斐波那契数列 --Java实现
public class Solution { public int Fibonacci(int n) { if(n <= 1) { return n; } return Fibonacci(n - 1) + Fi...
2020-09-18
0
350
剑指offer-旋转数组中的最小数字-Java版
public class Solution { public int minNumberInRotateArray(int [] a) { int len = a.length; if(len == 0) return 0; ...
2020-09-17
0
330
【剑指offer】用两个栈实现队列 -- Java实现
import java.util.Stack; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 = new S...
2020-09-13
0
368
【剑指offer】重建二叉树 --Java实现
public class reConstructBinaryTreeTest { static class TreeNode { int val; TreeNode left; TreeNode right; TreeNode...
2020-09-13
0
403
【剑指offer】替换空格 -- Java 实现
public class Solution { public String replaceSpace(StringBuffer str) { int len = str.length(); int rightMoveCount = 0; for...
2020-09-11
0
349
【剑指 offer】Java 实现 二维数组中的查找
public class Solution { public static boolean find(int target, int [][] array) { if (array == null) return false; int ...
2020-09-11
0
322