勤劳的小蜗牛许愿简历通过
勤劳的小蜗牛许愿简历通过
全部文章
分类
归档
标签
去牛客网
登录
/
注册
勤劳的小蜗牛许愿简历通过的博客
全部文章
(共67篇)
题解 | #【模板】单源最短路2#
要考虑到案例2的情况。循环要到N #include<iostream> #include<cstring> using namespace std; const int N = 5100; int n, m; int g[N][N]; int dist[N]; bool s...
2024-10-24
0
39
题解 | #最小生成树#
#include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 返回最小的花费代价使得这n户人家连接起来 * @param ...
2024-10-24
0
28
题解 | #【模板】拓扑排序#
#include <cstring> #include <iostream> using namespace std; const int N = 200010; int h[N], idx, e[N], ne[N]; int q[N], d[N]; int n, m; v...
2024-10-23
0
34
题解 | #删除链表的节点#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-10-23
0
33
题解 | #合并两个排序的链表#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <cstddef> class ...
2024-10-23
0
32
题解 | #反转链表#
ListNode* ReverseList(ListNode* head) { // write code here if(head == NULL) return NULL; ListNode* cur = head; ListNod...
2024-10-23
0
33
题解 | #【模板】循环队列#
#include <iostream> #include <string> using namespace std; const int N = 100010; int q[N]; int hh = 0, tt = 0; int main() { int siz...
2024-10-23
0
35
首页
上一页
1
2
3
4
5
6
7
下一页
末页