![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
面试题
文章平均质量分 67
XiAoma123_1
这个作者很懒,什么都没留下…
展开
-
计算有效的字符串长度
规则 :给定一个只包含两种字符的字符串:(,) ,其他字符均为无效 1、任何左括号(必须有相应的右括号)。 2、任何右括号)必须有相应的左括号(。 3、左括号(必须在对应的右括号之前)。 4、有效字符的长度为左括号和右括号的相加。 #include<iostream> #include<string> #include<vector> #include<stack> using namespace std; int cal...原创 2021-08-19 10:03:56 · 1629 阅读 · 0 评论 -
指定分隔符分割字符串
/********************************************************************** * Function: split_str * Description: Splits the target string by the specified character * Input: psrc: Pointer to the data to be processed psrc_len: The ...原创 2021-08-14 16:38:13 · 293 阅读 · 0 评论