709. To Lower Case

Source code notebook Author Update time

Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.

Example 1:

Input: "Hello"
Output: "hello"

Example 2:

Input: "here"
Output: "here"

Example 3:

Input: "LOVELY"
Output: "lovely"
# @lc code=start
using LeetCode

function to_lower_case(s::String)::String
    return lowercase(s)
end
# @lc code=end
to_lower_case (generic function with 1 method)

This page was generated using DemoCards.jl and Literate.jl.