本系列产生的一切目的为督促本人早起。
今日题目:
乏善可陈
class Solution {
public:
bool isAcronym(vector<string>& words, string s) {
int i=0;
if(s.length()!= words.size()) return false;
else{
for(auto c:s){
if(c != words[i][0]) return false;
++i;
}
return true;
}
}
};
以上。