742. To Lower Case
2026/1/12小于 1 分钟约 157 字
742. To Lower Case
难度: Easy
题目描述
Given a string s, return the string after replacing every uppercase letter with the same lowercase letter.
Example 1:
Input: s = "Hello" Output: "hello"
Example 2:
Input: s = "here" Output: "here"
Example 3:
Input: s = "LOVELY" Output: "lovely"
Constraints:
1 <= s.length <= 100sconsists of printable ASCII characters.
解题思路
代码实现
解决方案
java
class Solution {
public String toLowerCase(String s) {
}
}