会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
szz123
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
下一页
2024年9月23日
用结构体永久存储下标
摘要: ds题目 #include<iostream> using namespace std; typedef struct Node { int index; int data; }node; const int N = 10010; node a[N]; int output[N]; int hh =
阅读全文
posted @ 2024-09-23 14:20 某朝
阅读(20)
评论(0)
推荐(0)
2024年9月21日
栈实现递归
摘要: 汉诺塔 逆序输出(栈先进后出) #include<iostream> #include<stack> #include<tuple> using namespace std; int n; const int N = 10010; stack <tuple<int, char, char, char
阅读全文
posted @ 2024-09-21 16:22 某朝
阅读(15)
评论(0)
推荐(0)
2024年9月17日
pta重排链表(一个很清晰的实现,完全模拟链表的实现)
摘要: #include <iostream> #include <iomanip> #include <unordered_map> #include <string> using namespace std; const int N = 100010; unordered_map<string, str
阅读全文
posted @ 2024-09-17 11:34 某朝
阅读(64)
评论(0)
推荐(0)
2024年9月9日
操作
摘要: append:附加 ls:列出目录内容。 cd:更改当前目录。 pwd:显示当前位置的路径。 cp:复制文件或目录。 mv:移动或重命名文件或目录。 rm:删除文件或目录。 mkdir:创建新目录。 rmdir:删除空目录。 chmod:更改文件或目录的权限。 chown:更改文件或目录的所有者。
阅读全文
posted @ 2024-09-09 14:45 某朝
阅读(36)
评论(0)
推荐(0)
2024年9月3日
推断二叉树(递推)
摘要: 推断二叉树 已知前序中序求后序 #include<cstring> #include<cstdio> #include<iostream> using namespace std; void binary_tree(string mid, string pre) { if (mid.size() >
阅读全文
posted @ 2024-09-03 17:23 某朝
阅读(21)
评论(0)
推荐(0)
2024年9月2日
二叉树的遍历
摘要: 先序遍历 using namespace std; // 定义二叉树节点结构体 struct TreeNode { char Data; // 节点的数据 TreeNode* left; // 左子节点 TreeNode* right; // 右子节点 // 构造函数 TreeNode(char d
阅读全文
posted @ 2024-09-02 10:16 某朝
阅读(42)
评论(0)
推荐(0)
2024年9月1日
翻转int数组
摘要: 自我赋值问题:函数意图是反转数组,但会覆盖原数组的内容。可以使用一个临时数组来解决。 void myConverse(int a[], int size) { int* temp = new int[size]; // 分配临时数组 for (int i = 0; i < size; i++) {
阅读全文
posted @ 2024-09-01 12:12 某朝
阅读(19)
评论(0)
推荐(0)
2024年8月30日
字符串的处理
摘要: 消除换行符 if (str[i] == '\n')str[i] = '\0'; scanf和cin会读取空格,而fgets不会 gets_s许多编译器不支持,不建议用 char str[N]; if (fgets(str, sizeof(str), stdin) == NULL) { return
阅读全文
posted @ 2024-08-30 23:24 某朝
阅读(20)
评论(0)
推荐(0)
2024年8月23日
Daty1
摘要: 1.Function 机器学习=找函式(function) 函式种类: Regression:输出是一个数值(scalar)。 Classification:设定好的选项里选择一个进行输出 Structured learning Model y=b+wx feature weight bias 2.
阅读全文
posted @ 2024-08-23 11:52 某朝
阅读(14)
评论(0)
推荐(0)
Datawhale
摘要: https://linklearner.com/activity/16/14/42
阅读全文
posted @ 2024-08-23 10:10 某朝
阅读(20)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
下一页
公告