- 博客(4)
- 收藏
- 关注
原创 树的迭代后序遍历
引用并稍作修改于邓公所编《数据结构(c++语言版)》static void gotoHLVFL(Stack* S) { while (bintree x = Top(S)) if (x->left) { if (x->right) Push(S, x->right); Push(S, x->left); } else Push(S, x->right); Pop(S);}void post_order(bintree root) {
2021-10-06 17:15:30
99
原创 快读
inline int read(){ char ch; int num = 0; bool flag = true; for (ch; ch > '9' || ch < '0'; ch = getchar()) if (ch == '-') flag = false; for (ch; ch <= '9' && ch >= '0'; ch = getchar()) num = num * 10 + ch - '0'; return flag ?
2021-05-05 16:39:56
109
原创 educoder数据结构链表及其应用
educoder数据结构链表及其应用第一题第二题第三题第一题void LL_GetAt(LinkList L, int i, ElemType &e)// 在带头结点的单链表L中获取第i个元素的值赋给e,i的取值范围[1,n]{ // 请在这里补充代码,完成本关任务 /********** Begin *********/ LNode* p; p = L ->next; int j = 1; while (i > j && p) { p =
2021-03-27 19:30:29
4765
5
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人