You are viewing a single comment's thread. Return to all comments →
RUST:
fn camelcase(s: &str) ->i32 { s.chars().fold(1, |acc, l| if l.is_ascii_uppercase() {acc +1} else {acc}) }
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
CamelCase
You are viewing a single comment's thread. Return to all comments →
RUST: