JuniorString

To Lower Case

Given a string s, return the string after replacing every uppercase letter with the same lowercase letter.

Example 1
Inputs = "Hello"
Output"hello"
Every uppercase letter in Hello is converted to lowercase, producing hello.
Example 2
Inputs = "here"
Output"here"
The string here already contains no uppercase letters, so it remains unchanged.

Constraints

  • 1 <= s.length <= 100
  • s consists of printable ASCII characters.

Asked at 3 companies

</>

Your Solution

(Ctrl/Cmd + Enter)

Switching Language

Loading template...

Loading...

Sign in to save your progress

AI code evaluation

Get a correctness verdict, missed edge cases, and complexity analysis of your solution.

Sign in to evaluate