You have to run a loop from 0 to len-1 and for each index check if (input[i] == 'n') then increment a count variable by one.

Statistics

99% Solution Ratio
hamza05Earliest, Apr '18
mdPialFastest, 0.0s
Mili290Lightest, 0 B
mdvirusShortest, 25B
Toph uses cookies. By continuing you agree to our Cookie Policy.