摘要:
[0344.反转字符串] class Solution { public: void reverseString(vector<char>& s) { int left = 0; int right = s.size() - 1; while (left < right) { char temp = 阅读全文
摘要:
[0349.两个数组的交集] class Solution { public: vector<int> intersection(vector<int>& nums1, vector<int>& nums2) { vector<int> result (1000 , 0); int k = 0; f 阅读全文
摘要:
[1002.查找常用字符] class Solution { public: vector<string> commonChars(vector<string>& words) { int hashMap[100][26] = {0}; int count = 0; int k =0; string 阅读全文