Cody

Problem 2802. Count number of words in string

Count number of words in string

Examples

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

Solution Stats

56.88% Correct | 43.12% Incorrect
Last Solution submitted on Mar 02, 2020

Problem Comments