Pergunta de entrevista da empresa GE HealthCare

Implement a function that counts the number of words in a string, separated by space(s).

Resposta da entrevista

Sigiloso

14 de dez. de 2016

Pretty simple if you breakdown the string to array of characters. Moreover, pay attention to the case in which the string starts/ends with spaces, and that words can separated by more than one space.