- 博客(19)
- 问答 (3)
- 收藏
- 关注
原创 线性代数阶段性总结
一:线性代数介绍线性代数( linear algebra),首先,代数的百度定义:代数是研究数、数量、关系与结构的数学分支。初等代数一般在中学时讲授,介绍代数的基本思想:研究当我们对数字作加法或乘法时会发生什么,以及了解变量的概念和如何建立多项式并找出它们的根。代数的研究对象不仅是数字,而是各种抽象化的结构。在其中我们只关心各种关系及其性质,而对于“数本身是什么”这样的问题并不关心。常见的代数
2016-10-16 12:46:36 2147
原创 三种方法实现链表的插入
1,:使用二级指针不返回参数实现在给定条件前进行插入操作void insertlink(struct node ** tp,int k){ struct node ** curr; for(curr=tp;*curr;){ struct node * entry=*curr; if(entry->date == k){ *curr=(struct node *)mall
2016-10-10 21:52:03 1159
原创 利用二级指针删除链表
什么才是大神?什么才是底层核心的代码?为什么他能写出LINUX操作系统?真的,当我看完Linux的代码后就明白了,我们学的还是太浅显。void Deletelink(struct node ** tp,int k){ struct node ** curr=tp; for(curr;*curr;){ struct node * entry=*curr; if(entry->dat
2016-10-10 20:05:22 357 1
原创 利用递归查找链表中与数据成员值与形参n相同的结点
#include#includetypedef struct node{ int date; struct node *next;}node;int n=0;node * Creatlink(struct node * tp,int k);node * find_nodes(struct node * tp,int k);int main(){ int tmp; str
2016-10-07 19:01:40 320
原创 利用递归创建链表
#include#includetypedef struct node{ int date; struct node *next;}node;node * Creatlink(struct node * tp,int k);int main(){ int tmp; struct node * head=NULL, *tail=NULL; head=Creatlink(t
2016-10-07 17:09:41 605
原创 不利用函数直接构造链表
给定一批整数,以0作为结束标志且不作为节点,将其建成一个先进先出的链表#include#includetypedef struct node{ int date; struct node *next;}node;int main(){ int tmp; struct node * head, *tail; head=(struct node *)malloc(s
2016-10-07 16:45:56 433
原创 返回一级指针 创建链表
给定一批整数,以0作为结束标志且不作为节点,以此为节点构成一个先进先出链表#include#includetypedef struct node{ int date; struct node *next;}node;node * Creatnode(struct node * tp,int k);int main(){ int tmp; struct node
2016-10-07 16:36:26 306
原创 二级指针传参创建链表
给定一批整数,以0作为结束标志且不作为节点,将其建成一个先进先出的链表。#include#includetypedef struct node{ int date; struct node *next;}node;void Creatlink(struct node ** tp,int k);int main(){ int tmp; struct node *
2016-10-07 16:16:17 830
原创 实现满二叉树的节点查找 书上的,竟然还错了,我给他改了
#include#includetypedef struct node{ int date; struct node * left; struct node * right;}node;int n;node * Creattree(struct node * tree,int i);node * findtree(struct node * tree,int x);int
2016-10-06 19:17:54 290
原创 满二叉树的节点查找 我自己写的
#include#includetypedef struct node{ int date; struct node * left; struct node * right;}node;int n;node * Creattree(struct node * tree,int i);node * findtree(struct node * tree,int k);int
2016-10-06 18:55:58 392 1
原创 利用返回参数创建慢二叉树
#include#includetypedef struct node{ int date; struct node * left; struct node * right;}node;int n;node * Creattree(struct node * tree,int i);int main(){ struct node * b_tree=NULL; pri
2016-10-06 16:55:02 702
原创 利用二级指针创建满二叉树
#include#includetypedef struct node{ int date; struct node * left; struct node * right;}node;int n;void Creattree(struct node ** tree,int i);void preorder_traverse(struct node *tree);int ma
2016-10-06 16:21:31 398
原创 对字符串求字典序全排列(字符可重复)
#include#include#includeint comp(const void *a,const void *b){ char *s=(char *)a; char *t=(char *)b; if(*s<*t) return 0; return 1;}void PrintPerm(char a[]);void swap(char *a,char *b);int
2016-10-05 17:10:30 671
原创 超长精度加法
E - Integer InquiryCrawling in process...Crawling failedTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%lld & %lluSubmitStatus DescriptionInput
2016-10-05 12:35:17 328
原创 Integer Inquiry
E - Integer InquiryCrawling in process...Crawling failedTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%lld & %lluSubmitStatus DescriptionInput
2016-10-05 12:08:25 752
原创 对于排序的深刻理解
难道排序非得就是直接比较大小吗?完全错误,下面这个就是一个很好地例子给出N 整数,他们连接成最大整数为?#include#include#include#define MAXN 50char num[MAXN][100];int cmp(const void *a,const void *b);int main(){ int n,i,temp; printf(
2016-10-02 20:06:03 313
原创 多关键字排序 shell 为什么就不对呢
#include#includestruct medal{ char name[10]; int gold; int sliv; int bron;};int comp(const void *a,const void *b);void swap(char *a,char *b,int width);void shellsort(void *x,int n,int si
2016-10-02 15:34:23 394
原创 按字节交换内容,贼6
#includestruct medal{ char name[10]; int gold; int sliv; int bron;};void swap(char *a,char *b,int width);int main(){ struct medal country[2]={{"Japan",1,3,1},{"America",8,3,1}}; char *p=(
2016-10-02 09:54:04 278
原创 直接插入排序 解释哨兵的好例子
#includevoid InsertSort(int a[],int n);int main(){ int a[7]={98,0,3,56,2,6,0}; InsertSort(a,7); for(int i=0;i<7;i++) printf("%d ",a[i]); printf("\n"); return 0;} void InsertSort(int a[],
2016-10-01 09:48:31 580
空空如也
Jvm 新生代eden区自动创建对象
2021-10-08
TA创建的收藏夹 TA关注的收藏夹
TA关注的人