俊俏后生a
俊俏后生a
全部文章
分类
归档
标签
去牛客网
登录
/
注册
俊俏后生a的博客
全部文章
(共17篇)
题解 | 最长公共前缀
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param strs string字符串vector * @return string字...
2025-03-22
0
80
题解 | 链表中环的入口结点
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ #include <unordered_map...
2025-03-15
0
60
题解 | 链表合并
#include <iostream> #include <list> using namespace std; int main() { list<int> l1; list<int> l2; list<int>...
2025-03-15
0
75
题解 | #打印日期#
#include <iostream> using namespace std; class Date { public: Date(int y = 1, int m = 1, int d = 1) { _year = y; _month =...
2024-02-04
0
163
题解 | #日期差值#
#include <climits> #include <iostream> using namespace std; class Date { public: Date(int year, int month, int day) { _year...
2024-02-04
0
152
题解 | #计算日期到天数转换#
#include <iostream> using namespace std; int Count = 0; class Date { public: Date(int year = 1, int month = 1, int day = 1) { _year = year;...
2024-02-04
0
194
题解 | #求1+2+3+...+n#
class A { public: A() { _sum+=_i; _i++; } static int GetSum() { return _sum; } private: ...
2024-02-02
0
135
首页
上一页
1
2
下一页
末页