Jasonlovechina
Jasonlovechina
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Jasonlovechina的博客
全部文章
(共13篇)
题解 | #字符串最后一个单词的长度#
#include <iostream> #include <istream> #include <string> using namespace std; int main() { string tmp; //读取一行 getline(ci...
2024-12-10
0
33
题解 | #打印日期#
#include <iomanip> #include <iostream> #include <istream> #include <ostream> using namespace std; class Date { //输入流和输出流 ...
2024-10-09
1
73
题解 | #日期累加#
#include <iostream> #include <iomanip> using namespace std; class Date { public: //构造函数 Date(int year, int month, int dya) ...
2024-10-09
1
80
题解 | #日期差值#
#include <algorithm> #include <climits> #include <cstdio> #include <iostream> using namespace std; class Date { public: //构造函数...
2024-10-08
1
59
题解 | #计算日期到天数转换#
#include <iostream> using namespace std; //获取每个月的天数 static int Getmonth(int year, int month, int day) { static int GetMonth[13] = { -1, 31...
2024-10-08
1
91
题解 | #二叉树遍历#
#include <stdio.h> #include <stdlib.h> typedef struct root { struct root* left; struct root* right; char val; }root; //中序遍历二叉...
2024-06-18
1
144
题解 | #反转链表#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param head ListNode类 ...
2024-06-18
0
151
题解 | #有效括号序列#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return bool布尔型 */ #pragma once #include <assert.h> #include <st...
2024-06-18
0
181
题解 | #删除公共字符#
#include <stdio.h> #include <string.h> //进行一一对比,没找到返回1,找到了返回0 char is_same_del(char x,char arr[]) { int i=0; while (arr[i]) {...
2024-05-06
1
220
题解 | #链表的回文结构#
https://blog.csdn.net/Jason_from_China/article/details/138158212
2024-04-24
0
157
首页
上一页
1
2
下一页
末页