C语言笔试大全 本人收藏 4、编写算法,从10 亿个浮点数当中,选出其中最大的10000 个
用外部排序,在《数据结构》书上有 《计算方法导论》在找到第n 大的数的算法上加工 5、编写一unix 程序,防止僵尸进程的出现
********************************************************************* 同学的4 道面试题,应聘的职位是搜索引擎工程师,后两道超级难,(希望大家多给一些算发) 1
给两个数组和他们的大小,还有一动态开辟的内存,求交集,把交集放到动态内存dongtai,并且返回交集个数 long jiaoji(long* a[],long b[],long* alength,long blength,long* dongtai[]) 2
单连表的建立,把'a'--'z'26 个字母插入到连表中,并且倒叙,还要打印
方法1: typedef struct val { int date_1; struct val *next; }*p; void main(void) { char c; for(c=122;c>=97;c--) { p
date=c; p=p->next; } p
next=NULL; } } 方法2: node *p = NULL; node *q = NULL; node *head = (node*)malloc(sizeof(node)); head->data = ' ';head->next=NULL; node *first = (node*)malloc(sizeof(node)); first->data = 'a';first->next=NULL;head->next = first;