LeetCode / To Lower Case
Problem
- Link
- Description
- Convert uppercase letters in a string to lowercase
- Type
- X
Solution 1
| |
- Description
- Check each character from the beginning of the string, and convert to lowercase if it’s uppercase
- Time Complexity
- O(len(str))
- For loop of size len(str)
- Space Complexity
- O(len(str))
- Memory usage proportional to len(str) for function input