苏觅云
苏觅云
全部文章
题解
归档
标签
去牛客网
登录
/
注册
苏觅云的博客
全部文章
/ 题解
(共179篇)
题解 | #删除链表的节点#
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
题解 | #翻转单词序列#
import java.util.LinkedList; public class Solution { public String ReverseSentence(String str) { if(str == null || str.length() < 2) { ...
Java
2022-05-03
0
342
题解 | #和为S的连续正数序列#
import java.util.ArrayList; import java.util.LinkedList; public class Solution { public ArrayList<ArrayList<Integer> > FindContinuousS...
Java
2022-05-02
0
310
题解 | #和为S的两个数字#
import java.util.ArrayList; import java.util.Set; import java.util.HashSet; public class Solution { public ArrayList<Integer> FindNumbersWit...
Java
2022-05-02
0
320
题解 | #滑动窗口的最大值#
import java.util.*; class MyPair { public int num; public int idx; public MyPair(int n, int i) { num = n; idx = i; } ...
Java
2022-05-02
0
317
题解 | #字符流中第一个不重复的字符#
import java.util.*; public class Solution { private int[] counts = new int[128]; private Queue<Character> queue = new LinkedList<>...
Java
2022-05-01
1
342
题解 | #数据流中的中位数#
import java.util.*; public class Solution { private int N = 0; private PriorityQueue<Integer> left = new PriorityQueue<>(new Compa...
Java
2022-05-01
0
328
题解 | #最小的K个数#
import java.util.ArrayList; public class Solution { public ArrayList<Integer> GetLeastNumbers_Solution(int [] input, int k) { Array...
Java
2022-05-01
0
252
题解 | #栈的压入、弹出序列#
import java.util.LinkedList; public class Solution { public boolean IsPopOrder(int [] pushA,int [] popA) { LinkedList<Integer> stac...
Java
2022-05-01
0
273
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页