Update appNew update is available. Click here to update.
sidenav-btnClose
Topic list
Convert To Lower Case
EASY
6 upvotes
Strings
Topics (Covered in this problem)
Problem solved
Badge
Skill meter
Strings
-
-
Other topics
Problem solved
Badge
Skill meter
Matrices (2D Arrays)
-
-
Linked List
-
-
Sorting
-
-
Binary Search
-
-
Stacks & Queues
-
-
Trees
-
-
Graph
-
-
Dynamic Programming
-
-
Greedy
-
-
Tries
-
-
Arrays
-
-
SQL
-
-
Binary Search Trees
-
-
Heap
-
-
Bit Manipulation
-
-
Solve problems & track your progress
Checkout your overall progress in every topic here
Become
userLevel
Sensei
in DSA topics
Open the topic and solve more problems associated with it to improve your skills
Check out the skill meter for every topic
See how many problems you are left with to solve for cracking any stage. Score more than zero to get your progress counted.

Convert To Lower Case

Contributed by
Paritosh Singh
Easy
yellow-spark
0/40
Share
6 upvotes

Problem Statement

You are given a string ‘str’, your task is to convert all the characters of the string into lowercase letters.

For example:
You are given, ‘str’ = ‘AbcdEfgh’, in this string if you convert all the characters into lowercase, the string will be ‘abcdefgg’. Hence it is the answer.
Detailed explanation ( Input/output format, Notes, Constraints, Images )
Sample Output 1:
abcdefgh
aaaab
Explanation for sample Input 1:
For the first test case, ‘str’ = ‘AbcdEfgh’, in this string if you convert all the characters into lowercase, the string will be ‘abcdefgg’. Hence it is the answer.

For the second test case, ‘str’ = ‘AAAAb’,  in this string if you convert all the characters into lowercase, the string will be ‘aaaab’. Hence it is the answer.
Sample Input 2:
2
abcde
ABCDE
Sample Output 2:
 abcde
 abcde
Reset Code
Full screen
Auto
copy-code
Console