string ccbreaker(string camelCased){
string nonCamelCased = ""; // string that is ragular one
for(char c : camelCased){
// whenever a upper case letter is encountered first add a space
// and then add its lower case version
if(c <= 90 && c >= 65){
nonCamelCased += " ";
nonCamelCased += char(c+32);
}
// if not uppercase then simply add it
else{
nonCamelCased += c;
}
}
return nonCamelCased;
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
C++ solution