摘要:
5621. 无法吃午餐的学生数量 思维 判断栈中那种三明治比所需人多,找多出来的位置以后便是不可取的 class Solution { public: int countStudents(vector<int>& students, vector<int>& sandwiches) { int n 阅读全文
摘要:
1684. 统计一致字符串的数目 简单模拟 class Solution { public: int countConsistentStrings(string allowed, vector<string>& words) { int n = words.size(),num = 0; int h 阅读全文