自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 6、数组和链表的逆置算法

#include <iostream>#define SIZE 10using namespace std;typedef struct LNode{ int data; struct LNode *next;};void reverseArray(int a[],int s) //数组的逆置函数{ int i=0,j=s,temp;...

2019-02-28 15:59:47 198

原创 5、两个有序单链表的归并排序算法

#include <iostream>#include <stdlib.h>using namespace std;typedef struct LNode{ int data; struct LNode *next;}LNode;LNode * createLinkList() //构造带头结点的链表 ,尾插法,构造的节点要有序...

2019-02-27 20:05:19 1250

原创 5、两个单链表的二路归并算法

#include <iostream>#include <stdlib.h>using namespace std;typedef struct LNode{ int data; struct LNode *next;}LNode;LNode * createLinkList() //构造带头结点的链表 ,尾插法,构造的节点要有序...

2019-02-27 19:54:29 1139

原创 4、两个数组的二路归并算法

#include <iostream>using namespace std;//顺序表的二路归并操作 ,数组存储 ,传入的数组从小到大排列,合并后的数组仍然是从小到大排列 void mergeArray(int a[],int m,int b[],int n,int c[]) //传入数组和数组的长度 ,不是下标 {    int i=0,j=0,k=0;    wh...

2019-02-27 18:00:32 361

原创 3、手动输入创建单链表

#include <iostream>#include <stdlib.h> using namespace std;typedef struct LNode{    char c;    struct LNode *next;    }LNode;void createLinkList(int n,LNode *&head)  //  我是用t...

2019-02-27 08:58:50 932

原创 2、双向链表最大值移动到头结点后

#include <iostream>#include <stdlib.h>using namespace std;typedef struct DLnode{    int data;    struct DLnode *left;    struct DLnode *right;}DLnode; DLnode* createDLinkList()...

2019-02-27 08:57:15 412

原创 1、求一个链表当中的最大值和最小值

#include <iostream>#include <stdlib.h>using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */typedef struct LNode{...

2019-02-27 08:46:46 6244

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除