随笔分类 - 基础笔记
摘要:
搜索 框架 dfs框架 #include <bits/stdc++.h> using namespace std; const int N = 100005; struct Node { char value; int lson, rson; } tree[N]; //tree[0]不用,0表示空结
阅读全文

摘要:
基本数据结构 链表手写 动态链表 叫到第m的人淘汰 struct node { int data; node *next; }; 动态链表实现,需要管理空间 int main() { int n, m; scanf("%d %d", &n, &m); node *head, *p, *now, *p
阅读全文
