什么又被限制
什么又被限制
全部文章
分类
归档
标签
去牛客网
登录
/
注册
什么又被限制的博客
全部文章
(共34篇)
题解 | #删除链表的节点#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2022-11-28
0
221
题解 | #合并两个排序的链表#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* Merge...
2022-11-27
0
292
题解 | #反转链表#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* Rever...
2022-11-27
0
226
题解 | #反转链表#
public ListNode ReverseList(ListNode head) { //新链表 ListNode newHead = null; while (head != null) { //先保存访问的节点的下一个节点,保存起来 /...
2022-11-27
0
245
题解 | #【模板】循环队列#
#include <iostream> #include <queue> using namespace std; int main() { int n, q; cin >> n >> q; string s; in...
2022-11-25
0
250
题解 | #【模板】队列#
#include <iostream> #include <queue> using namespace std; int main() { int n; cin >> n; queue<int> que; stri...
2022-11-24
0
270
题解 | #表达式求值#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * 返回表达式的值 * @param s string字符串 待计算的表达式 * @return(7560762...
2022-11-23
0
246
题解 | #点击消除#
#include <iostream> #include <algorithm> #include <stack> using namespace std; int main() { string a; stack<char> st...
2022-11-22
0
287
题解 | #逆波兰表达式求值#
#include<iostream> #include<algorithm> #include<vector> #include<stack> #include<string> using namespace std; //class ...
2022-11-21
0
258
题解 | #有效括号序列#
class Solution { public: /** * * @param...
C++
栈
2022-11-02
0
303
首页
上一页
1
2
3
4
下一页
末页