You are viewing a single comment's thread. Return to all comments →
super easy in Swift
func camelcase(s: String) -> Int { return s.filter( { $0.isUppercase }).count + 1 }
Seems like cookies are disabled on this browser, please enable them to open this website
CamelCase
You are viewing a single comment's thread. Return to all comments →
super easy in Swift
func camelcase(s: String) -> Int { return s.filter( { $0.isUppercase }).count + 1 }