搜索引擎工程师面试题.docVIP

  • 82
  • 0
  • 约9.29千字
  • 约 13页
  • 2018-01-05 发布于河南
  • 举报
搜索引擎工程师面试题

1.给两个数组和他们的大小,还有一动态开辟的内存,求交集,把交集放到动态内存dongtai,并且返回交集个数 long jiaoji(long* a[],long b[],long* alength,long blength,long* dongtai[]) 2.单连表的建立,把a--z26个字母插入到连表中,并且倒叙,还要打印! 方法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; p = first; int longth = z - b;

文档评论(0)

1亿VIP精品文档

相关文档