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
|
1882 Discussions
|
Please Login in order to post a comment
Here is my easy solution in c++, you can have the explanation here : https://youtu.be/1PDDxGbmSj8
Golang:
Javascript/Typescript:
return (s.match(/[A-Z]/g)?.length ?? 0) + 1
def camelcase(s): return sum(1 for i in s if i.isupper()) + 1