![](https://csdnimg.cn/release/download_crawler_static/88163442/bg10.jpg)
node *first = (node*)malloc(sizeof(node));
first->data = 'a';first->next=NULL;head->next
= first;
p = first;
int longth = 'z' - 'b';
int i=0;
while ( i<=longth )
{
node *temp = (node*)malloc(sizeof(node));
temp->data = 'b'+i;temp->next=NULL;q=temp;
head->next = temp; temp->next=p;p=q;
i++;
}
print(head);
3.可怕的题目终于来了
象搜索的输入信息是一个字符串,统计 300 万输
入信息中的最热门的前十条,我们每次输入的一
个字符串为不超过 255byte,内存使用只有 1G,
请描述思想,写出算发(c 语言),空间和时间
复杂度,
4.国内的一些帖吧,如 baidu,有几十万个主题,
假设每一个主题都有上亿的跟帖子,怎么样设计