709. To Lower Case Easy

@problem@discussion
#String



1/**
2 * [709] To Lower Case
3 *
4 * Given a string s, return the string after replacing every uppercase letter with the same lowercase letter.
5 *  
6 * Example 1:
7 * 
8 * Input: s = "Hello"
9 * Output: "hello"
10 * 
11 * Example 2:
12 * 
13 * Input: s = "here"
14 * Output: "here"
15 * 
16 * Example 3:
17 * 
18 * Input: s = "LOVELY"
19 * Output: "lovely"
20 * 
21 *  
22 * Constraints:
23 * 
24 * 	1 <= s.length <= 100
25 * 	s consists of printable ASCII characters.
26 * 
27 */
28pub struct Solution {}
29
30// problem: https://leetcode.com/problems/to-lower-case/
31// discuss: https://leetcode.com/problems/to-lower-case/discuss/?currentPage=1&orderBy=most_votes&query=
32
33// submission codes start here
34
35impl Solution {
36    pub fn to_lower_case(s: String) -> String {
37        String::new()
38    }
39}
40
41// submission codes end
42
43#[cfg(test)]
44mod tests {
45    use super::*;
46
47    #[test]
48    fn test_709() {
49    }
50}
51


Back
© 2025 bowen.ge All Rights Reserved.