摘要:
题目链接:https://www.acwing.com/problem/content/86/ /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(i 阅读全文
posted @ 2022-06-20 09:54
杨振奎
阅读(22)
评论(0)
推荐(0)
摘要:
题目链接:https://www.acwing.com/problem/content/description/90/ class MinStack { public: stack<int> s1, s2; /** initialize your data structure here. */ Mi 阅读全文
posted @ 2022-06-20 09:44
杨振奎
阅读(8)
评论(0)
推荐(0)
摘要:
题目链接:https://www.acwing.com/problem/content/description/1050/ 第一种方式:O(nm) #include <bits/stdc++.h> using namespace std; const int N = 110, M = 15; int 阅读全文
posted @ 2022-06-20 09:36
杨振奎
阅读(78)
评论(0)
推荐(0)

/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ // 思路: //
浙公网安备 33010602011771号