原创 鏈表的逆置(遞歸)

#include<stdio.h> #include<stdlib.h> #define N 9 typedef struct node{    int  data;    struct node * next; }ElemSN; Elem

原创 二叉排序樹的查找

#include<stdio.h> #include<stdlib.h> /* 遞歸前中後遍歷 */ typedef struct node {   int data;   struct node*left;   struct node*r

原创 二叉排序樹創建(遞歸)

#include<stdio.h> #include<stdlib.h> /* 遞歸前中後遍歷 */ typedef struct node {   int data;   struct node*left;   struct node*r

原创 數組逆置

#include<stdio.h>void fun(int a[], int n){int i,j,temp;for(i = 0,j = n-1; i < j; i ++,j --){//  交換時 i< j即可完成   temp = a[

原创 單向循環鏈表(約瑟夫環)

#include<stdio.h>#include<stdlib.h>#define N 10typedef struct node{   int  data;   struct node * next;}ElemSN;ElemSN*Cre

原创 兩條帶頭結點的升序重複合併成一個無重複的升序鏈表

#include<stdio.h>#include<stdlib.h>typedef struct node{   int  data;   struct node * next;}ElemSN;ElemSN  * Createlink(i

原创 鏈表的逆置(帶表頭的單向鏈表)

#include<stdio.h> #include<stdlib.h> #define N 9 typedef struct node{    int  data;    struct node * next; }ElemSN; Elem

原创 鏈表升序排序(降序)

#include<stdio.h>#include<stdlib.h>#define N 5typedef struct node{   int  data;   struct node * next;}ElemSN;ElemSN  * C

原创 鏈表節點的刪除(鏈表data升序有重複)

#include<stdio.h>#include<stdlib.h>#define N 9typedef struct node{   int  data;   struct node * next;}ElemSN;ElemSN  * C

原创 鏈表節點的刪除(無重複)

#include<stdio.h>#include<stdlib.h>#define N 9typedef struct node{   int  data;   struct node * next;}ElemSN;ElemSN  * C

原创 鏈表的遍歷-奇數結點個數

#include<stdio.h>#include<stdlib.h>#define N 9typedef struct node{   int  data;   struct node * next;}ElemSN;ElemSN  * C

原创 鏈表節點的刪除(刪除重複無序節點)

#include<stdio.h>#include<stdlib.h>#define N 9typedef struct node{   int  data;   struct node * next;}ElemSN;ElemSN  * C

原创 鏈表的遍歷-結點個數

#include<stdio.h>#include<stdlib.h>#define N 9typedef struct node{   int  data;   struct node * next;}ElemSN;ElemSN  * C

原创 鏈表結點的移動(最大值移到尾結點)

#include<stdio.h>#include<stdlib.h>#define N 9typedef struct node{   int  data;   struct node * next;}ElemSN;ElemSN  * C

原创 逆向創建鏈表

#include<stdio.h>#include<stdlib.h>#define N 9typedef struct node{ //聲明結果數組int data;struct node * next;}ElemSN;ElemSN *