![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
会吼的儒
慢慢
展开
-
约瑟夫环(循环链表)
约瑟夫环 代码 去博客设置页面,选择一款你喜欢的代码片高亮样式,下面展示同样高亮的 代码片. #include <stdio.h> #include <stdlib.h> typedef struct node { int data; struct node *next; }node; node *create(int n) { node *p = NULL,*...原创 2019-08-09 21:20:49 · 239 阅读 · 0 评论 -
魔术师发牌问题(循环链表)
基础循环链表的应用 代码 #include <stdio.h> #include <stdlib.h> typedef struct node { int data; struct node *next; }sqlist,*linklist; linklist CreateLinkList() { linklist head = NULL; linklist r...原创 2019-08-11 12:31:10 · 127 阅读 · 0 评论 -
二进制转化十进制(栈的应用)
#include <stdio.h> #include <stdlib.h> #include <math.h> #define STACK_INIT_SIZE 20 #define STACKINCREMENT 10 typedef char ElemType; typedef struct { ElemType *base; ElemType *to...原创 2019-08-12 21:57:50 · 287 阅读 · 0 评论