Cody

Problem 2802. Count number of words in string

Created by Pritesh Shah in Community

Count number of words in string

Examples

 'hi', answer is 1
 'hi hi', answer is 2
 'I enjoy cody', answer is 3

Solution Stats

57.14% Correct | 42.86% Incorrect
Last solution submitted on Apr 10, 2019

Problem Comments

Recent Solvers96

Suggested Problems

More from this Author73

Tags