class Solution {
public:
string reverseStr(string s,int k) {
for (int start = 0; start < s.size(); start += 2 * k) {
int end = min(start + k - 1,s.size() - 1);
while (start < end) {
swap(s[start],s[end]);
start++;
end--;
}
}
return s;
}
};
第5行:字符54:错误:没有用于调用'min(int,std :: __ cxx11 :: basic_string :: size_type)'的匹配函数