No$Bug
No$Bug
全部文章
分类
专项练习(1)
题解(11)
归档
标签
去牛客网
登录
/
注册
No$Bug的博客
全部文章
(共13篇)
题解 | #删除有序链表中重复的元素-I#
public ListNode deleteDuplicates (ListNode head) { // 创建set集合,集合内元素不重复 HashSet<Integer> set = new HashSet<>(); // ...
2021-08-21
0
320
题解 | #用两个栈实现队列#
/** * 实现队列 */ Stack<Integer> stack1 = new Stack<Integer>(); /** * 临时存储队列的元素 */ Stack<Integer> stack2 = new Stack<Integer>(); ...
2021-08-21
0
254
题解 | #括号序列#
/** * 栈,先进后出 * 如果栈(栈不为空)中第一个元素为 {、[、( 且 当前从s中取得字符为 }、]、)相对应时出栈 * 如果当前取出的字符为 {、(、[ 时压栈 * 如果栈为空,当前字符为 )、]、} 返回false */ public static boolean ...
2021-08-20
0
300
首页
上一页
1
2
下一页
末页