Horje
To Lower Case leetcode solution in c++ Code Example
To Lower Case leetcode solution in c++
class Solution {
public:
    string toLowerCase(string s) {
        char ch;
        for(int i=0;i<s.length();i++)
        {
            if(s[i]>='A'&&s[i]<='Z')
            {
                ch=s[i];
                ch+=32;
                s[i]=ch;
            }
        }
        return s;
    }
};




Cpp

Related
c++ tuple push_back Code Example c++ tuple push_back Code Example
how to find total numbe of distinct characters in a string in c Code Example how to find total numbe of distinct characters in a string in c Code Example
store array in vector Code Example store array in vector Code Example
c++ argument list for class template is missing Code Example c++ argument list for class template is missing Code Example
c++ hsl to rgb integer Code Example c++ hsl to rgb integer Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8