We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Strings
- CamelCase
- Discussions
CamelCase
CamelCase
Sort by
recency
|
1901 Discussions
|
Please Login in order to post a comment
c++
function camelcase(s: string): number { // Write your code here let count = 1; for(let i = 0; i < s.length; i++){ if(s[i].match(/[A-Z]/)){ count++; } } return count;
}
my solution in C# public static int camelcase(string s) {
in C#
Here is my easy solution in c++, you can have the explanation here : https://youtu.be/1PDDxGbmSj8