Practice To Lower Case
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
Given a string s, return the string after replacing every uppercase letter with the same lowercase letter.
Source: To Lower Case on LeetCode. Use the original task for its coding environment and submissions.
Examples
# 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 <= 100
s consists of printable ASCII characters.
Related LeetCode Problems
Practice more problems similar to To Lower Case.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.