会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
菠萝超级酸
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2022年1月30日
telnet测试smtp服务器
摘要: 尝试使用telnet登录SMTP服务器后输入命令。 首先进行如qq邮箱进行设置,获得授权码。 1.进入邮箱,点击设置,再点击账户 2.开启IMAP/SMTP服务,发送短信才能开启,然后获得授权码(图片上我已经开启了) 3.授权码的格式是16个小写字母,我的是mhdq kdmh ltzy cadc,注
阅读全文
posted @ 2022-01-30 12:58 菠萝超级酸
阅读(747)
评论(0)
推荐(0)
2022年1月25日
二叉树镜像
摘要: 1 #include <iostream> 2 #include <vector> 3 #include <queue> 4 using namespace std; 5 struct Treenode 6 { 7 int val; 8 Treenode* left; 9 Treenode* rig
阅读全文
posted @ 2022-01-25 23:33 菠萝超级酸
阅读(32)
评论(0)
推荐(0)
2022年1月10日
LRU设计
摘要: 1 //leetcode 146.LRU缓存 2 #include <iostream> 3 #include <unordered_map> 4 using namespace std; 5 struct DlinkedNode{ 6 int key,value; 7 DlinkedNode* p
阅读全文
posted @ 2022-01-10 22:08 菠萝超级酸
阅读(68)
评论(0)
推荐(0)
2022年1月7日
链表环的判断
摘要: 1 #include <iostream> 2 using namespace std; 3 struct Listnode//定义链表节点 4 { 5 int val; 6 Listnode* next; 7 Listnode(int _val):val(_val),next(nullptr){}
阅读全文
posted @ 2022-01-07 22:31 菠萝超级酸
阅读(46)
评论(0)
推荐(0)
2022年1月2日
二叉树层次遍历
摘要: 1 #include <iostream> 2 #include <vector> 3 #include <queue> 4 using namespace std; 5 6 void Print(const vector<int> &v) 7 { 8 for(auto it:v) 9 { 10 c
阅读全文
posted @ 2022-01-02 10:21 菠萝超级酸
阅读(30)
评论(0)
推荐(0)
2021年12月31日
C++迭代实现前中后序遍历
摘要: #include <iostream> #include <vector> #include <stack> using namespace std; struct Treenode { int val; Treenode* left; Treenode* right; Treenode(int _
阅读全文
posted @ 2021-12-31 10:07 菠萝超级酸
阅读(59)
评论(0)
推荐(0)
2021年12月29日
C++合并有序链表
摘要: #include <iostream> using namespace std; //定义链表结构 struct my_list{ int val; my_list *next; my_list(int _val):val(_val),next(nullptr){} }; my_list* merg
阅读全文
posted @ 2021-12-29 21:45 菠萝超级酸
阅读(103)
评论(0)
推荐(0)
C++反转链表
摘要: 1 #include <iostream> 2 using namespace std; 3 struct my_list{ 4 5 int val; 6 my_list* next; 7 my_list(int _val):val(_val),next(nullptr){} 8 }; 9 my_l
阅读全文
posted @ 2021-12-29 21:44 菠萝超级酸
阅读(169)
评论(0)
推荐(0)
2021年12月28日
C++冒泡、快速、基数排序
摘要: #include <iostream> #include <vector> using namespace std; void Print(vector<int> &v) { for(auto it:v) { cout<<it<<" "; } cout<<endl; } //冒泡排序,时间复杂度为n
阅读全文
posted @ 2021-12-28 20:36 菠萝超级酸
阅读(36)
评论(0)
推荐(0)
C++实现简易动态数组
摘要: #include <iostream> #include <cstring> using namespace std; template <class T> class CArray { int size; //数组元素的个数 T *ptr; //指向动态分配的数组 public: CArray(i
阅读全文
posted @ 2021-12-28 20:34 菠萝超级酸
阅读(160)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告