题目:
class Solution {
public:
int search(vector<int>& nums, int target) {
int count=0;
for(auto n:nums){
if(n==target){
count++;
}
}
return count;
}
};
标签:count,target,nums,int,Offer,53,查找
From: https://www.cnblogs.com/fly-smart/p/17601587.html