数据结构系列12-二叉树的层次遍历
数据结构系列12 - 二叉树的层次遍历 - C语言实现 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111/************************************************************************** File Name: treeLevelTraverse.c* Author: TyrantLucifer* E-mail: TyrantLucifer@gmail.com* Blog: https://tyrantlucifer.com* Created Time: Thu 13 May 2021 07:03:14 PM ...
数据结构系列11-二叉树的创建与遍历
数据结构系列11 - 二叉树的创建与遍历 - C语言实现 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990/************************************************************************** File Name: tree.c* Author: TyrantLucifer* E-mail: TyrantLucifer@gmail.com* Blog: https://tyrantlucifer.com* Created Time: Sun 09 May 2021 08:47:34 PM CST ************************************************************* ...
数据结构系列10-字符串kmp匹配
数据结构系列10 - 字符串kmp匹配 - C语言实现 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901 ...
数据结构系列9-字符串暴力匹配
数据结构系列9 - 字符串暴力匹配 - C语言实现 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107/** * File Name: ForceMatch.c * Author: tyrantlucifer * E-mail: tyrantlucifer@gmail.com * Blog: https://tyrantlucifer.com */#include <stdio.h>#include <stdlib.h>/** * define struct of string */typedef struct String { char* data; ...
数据结构系列8-循环队列
数据结构系列8 - 循环队列 - C语言实现 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117/** * File Name: CircularQueue.c * Author: tyrantlucifer * E-mail: tyrantlucifer@gmail.com * Blog: https://tyrantlucifer.com */#include <stdio.h>#include <stdlib.h>#define MAXSIZE 5/** * define the struct of circu ...
数据结构系列7-队
数据结构系列7 - 队 - C语言实现 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103/** * File Name: Queue.c * Author: tyrantlucifer * E-mail: tyrantlucifer@gmail.com * Blog: https://tyrantlucifer.com */#include <stdio.h>#include <stdlib.h>/** * define the node of queue */typedef struct Node { int data; struct Node* next; stru ...
数据结构系列6-栈
数据结构系列6 - 栈 - C语言实现 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899/** * File Name: Stack.c * Author: tyrantlucifer * E-mail: tyrantlucifer@gmail.com * Blog: https://tyrantlucifer.com */#include <stdio.h>#include <stdlib.h>/** * define struct of stack */typedef struct Node { int data; struct Node *next;} Node;/** * init ...
数据结构系列5-双循环链表
数据结构系列5 - 双循环链表 - C语言实现 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117/************************************************************************** File Name: LoopDoubleLinkList.c* Author: tyrantlucifer* E-mail: tyrantlucifer@gmail.com* Blog: https://tyrantlucifer.com *************************** ...
数据结构系列4-双链表
数据结构系列4 - 双链表 - C语言实现 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125/************************************************************************** File Name: DoubleLinkList.c* Author: tyrantlucifer* E-mail: tyrantlucifer@gmail.com* Blog: https://tyrantlucifer.com ********* ...
数据结构系列3-单循环链表
数据结构系列3 - 单循环链表 - C语言实现 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116/************************************************************************** File Name: LoopSingleLinkList.c* Author: tyrantlucifer* E-mail: tyrantlucifer@gmail.com* Blog: https://tyrantlucifer.com ****************************** ...