摘要: 自己使用堆栈没有成功,主要原因是很久没有敲代码,再加上没有演算整个过程,凭空想象,非常的不好 贴自己没成功的代码吧 class Solution { public: int longestValidParentheses(string s) { stack<string>temp; int numb 阅读全文
posted @ 2022-02-21 20:22 jozon 阅读(35) 评论(0) 推荐(0)
摘要: 大三放寒假一个月没有打代码了,简单题不会做,练练手 class Solution { public: int removeElement(vector<int>& nums, int val) { int left =0; int right =nums.size()-1; while(left<= 阅读全文
posted @ 2022-02-21 15:39 jozon 阅读(21) 评论(0) 推荐(0)