苏觅云
苏觅云
全部文章
题解
归档
标签
去牛客网
登录
/
注册
苏觅云的博客
全部文章
/ 题解
(共130篇)
题解 | #翻转单词序列#
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
题解 | #包含min函数的栈#
import java.util.Stack; public class Solution { public Stack<Integer> s1 = new Stack<>(); public Stack<Integer> s2 = new St...
Java
2022-04-30
0
256
题解 | #用两个栈实现队列#
import java.util.Stack; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 = new S...
Java
2022-04-30
0
250
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页