- 博客(2)
- 收藏
- 关注
原创 串的朴素模式匹配算法
int Index(SString S,SString T){ int k = 1; int i = k,j = 1; while (i<S.length && j <= T.length){ if(S.ch[i] == T.ch[j]){ ++i; ++j; } else{ k++; i = k; .
2021-07-22 22:31:43
106
原创 栈实现括号匹配
#define MaxSize 10 typedef struct{ ElemType data[MaxSize]; int top; }SqStack; bool BrackerCheck(char str[],int length){ SqStack S; InitStack(S); for(int i = 0;i < length;i++){ if(str[i] == '(' || str[i] == '[' || str[i] ==.
2021-07-17 14:20:22
97
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人