判断元素出栈、入栈顺序的合法性。如入栈的序列(1,2,3,4,5),出栈序列为(4,5,3,2,1)

/* Stack.h */ #pragma once #include <stdio.h> #include <string.h> #include <assert.h> typedef char StackDataType; #define MAX_SIZE (100) typedef struct Stack { StackDataType array[MAX_SIZE]
相关文章
相关标签/搜索