上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 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)
摘要: 汉诺塔 逆序输出(栈先进后出) #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)
摘要: #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)
摘要: append:附加 ls:列出目录内容。 cd:更改当前目录。 pwd:显示当前位置的路径。 cp:复制文件或目录。 mv:移动或重命名文件或目录。 rm:删除文件或目录。 mkdir:创建新目录。 rmdir:删除空目录。 chmod:更改文件或目录的权限。 chown:更改文件或目录的所有者。 阅读全文
posted @ 2024-09-09 14:45 某朝 阅读(36) 评论(0) 推荐(0)
摘要: 推断二叉树 已知前序中序求后序 #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)
摘要: 先序遍历 using namespace std; // 定义二叉树节点结构体 struct TreeNode { char Data; // 节点的数据 TreeNode* left; // 左子节点 TreeNode* right; // 右子节点 // 构造函数 TreeNode(char d 阅读全文
posted @ 2024-09-02 10:16 某朝 阅读(42) 评论(0) 推荐(0)
摘要: 自我赋值问题:函数意图是反转数组,但会覆盖原数组的内容。可以使用一个临时数组来解决。 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)
摘要: 消除换行符 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)
摘要: 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)
摘要: 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 下一页