题目链接:https://leetcode.com/problems/to-lower-case/description/
题目解析:没什么特别的,善用STL。
代码如下:0ms Accepted
class Solution {
public:
string toLowerCase(string str) {
transform(str.begin(), str.end(), str.begin(), ::tolower);
return str;
}
};
1730



被折叠的 条评论
为什么被折叠?



