Domanda di colloquio di Starbucks

Write a function that will parse the number of words in a given string without using a quick two line solution

Risposta di colloquio

Anonimo

4 mar 2014

I walked the string using a iterator ptr and counted every time I hit a delimiter.