摘要: 第一次参加 我激动的心 颤抖的手 勉勉强强提交了第一题 磕磕绊绊到达并最终倒在了第二题>-< [6229. 对数组执行操作] class Solution { public: vector<int> applyOperations(vector<int>& nums) { int length = 阅读全文
posted @ 2022-11-06 21:24 跬步瑶 阅读(24) 评论(0) 推荐(0)
摘要: [1002.查找常用字符] class Solution { public: vector<string> commonChars(vector<string>& words) { int hashMap[100][26] = {0}; int count = 0; int k =0; string 阅读全文
posted @ 2022-11-06 21:04 跬步瑶 阅读(25) 评论(0) 推荐(0)
摘要: [0242.有效的字母异位词] 我完全没思路 以前只是在书上学过 哈希查找相关的 哈希函数构造方法、哈希冲突处理方法、哈希表上查找删除伪代码,没有真正用哈希方法实现代码解决问题 简而言之:知道 不会用 看了思路 我定义已知长度数组基本语句不会,26个字母映射到自己定义的长度为26的数组的方法不知道, 阅读全文
posted @ 2022-11-06 21:03 跬步瑶 阅读(28) 评论(0) 推荐(0)