寻找单链表存储字符串的相同后缀起始位置(4)

时间复杂度为:O(min(m,n)); #include<stdio.h> #include<stdlib.h> //找出单链表存储的两个单词相同后缀的起始位置 //可以用栈来求,会比较简单,但是有空间上的消耗 //这里我直接来对比 //感觉链表现在写的越来越熟练了~开心~ typedef struct node { char data; struct node* next; }Node
相关文章
相关标签/搜索