Geat
Geat
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Geat的博客
全部文章
(共4篇)
题解 | #删除升序数组的重复元素#
#include <set> #include <unordered_map> #include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值...
2023-09-05
0
318
题解 | #重复的子字符串#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 * @return bool布尔型 *...
2023-09-05
0
388
题解 | #链表的中间结点#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2023-09-05
0
340
题解 | #买卖股票的最好时机(一)#
#include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; vector<int> prices; ...
2023-08-26
0
542