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
|
1908 Discussions
|
Please Login in order to post a comment
My Java 8 Solution
my cpp solution for this programme
int camelcase(string s) {
}
def camelcase(s): # Write your code here wordCount = 1 for i in s: if "A" <= i <= "Z": wordCount += 1
Here is a python O(n) time and O(1) space:
Javascript