20. Valid Parentheses

      判断括号是否匹配   知道要用栈来做,但是过程还是想了一会儿,哎   1 bool isValid(char* s) { 2 int len = 0; 3 while(s[len++] != '\0'); 4 char* stack = (char *) malloc(sizeof(char) * (len + 1)); 5 int
相关文章
相关标签/搜索