Leetcode 709. To Lower Case
To Lower Case - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared…
Given a string
s, return the string after replacing every uppercase letter with the same lowercase letter.
Input: s = "Hello"
Input: s = "here"
Input: s = "LOVELY"
1 <= s.length <= 100
sconsists of printable ASCII characters.
- use the ASCII table
- use string builder to create result string
- trick: need to use (char) to change back from Integer to Char