Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 1.09 KB

[0709] 转换成小写字母.md

File metadata and controls

73 lines (50 loc) · 1.09 KB
title tags categories author comments updated permalink mathjax top description date
[0709] 转换成小写字母
leetcode
leetcode
张学志
true
false
false
false
...
2019-12-31 16:11:49 -0800

题目描述

实现函数 ToLowerCase(),该函数接收一个字符串参数 str,并将该字符串中的大写字母转换成小写字母,之后返回新的字符串。

 

示例 1:

输入: "Hello"
输出: "hello"

示例 2:

输入: "here"
输出: "here"

示例 3:

输入: "LOVELY"
输出: "lovely"
Related Topics
  • 字符串
  • 题目代码

    class Solution {
    public:
        string toLowerCase(string str) {
    
        }
    };

    题目解析

    方法一

    方法二

    方法三