摘要:
leetcode有效的括号 利用栈来匹配字符串 class Solution {public: bool isValid(string s) { if(s.length()%2!=0) return false; else { stack<char> s1; map<char,char> m1; m 阅读全文
posted @ 2020-05-04 21:38
我爱微风
阅读(104)
评论(0)
推荐(0)
摘要:
leetcode两数之和 暴力解法 class Solution {public: vector<int> twoSum(vector<int>& nums, int target) { vector<int> v1; for(int i=0;i<nums.size();i++) { for(int 阅读全文
posted @ 2020-05-04 21:35
我爱微风
阅读(98)
评论(0)
推荐(0)

浙公网安备 33010602011771号