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
|
1893 Discussions
|
Please Login in order to post a comment
Here is my Simple and straightforward Java solution :
return (int) (s.chars().filter(Character::isUpperCase).count()+1);
Here is my easy solution in c++, you can have the explanation here : https://youtu.be/1PDDxGbmSj8
int camelcase(string s) { int count=1; for(int i=1;i
C++
Python solution: