摘要: ###解题思路 根据题意进行模拟即可,利用哈希表把输入的ruleKey转换为items[i]的下标,然后再遍历一遍items,找出符合条件的物品数量。 代码如下: class Solution { public: int countMatches(vector<vector<string>>& it 阅读全文
posted @ 2022-10-29 18:37 hql5 阅读(24) 评论(0) 推荐(0)