Starbucks Interview Question

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

Interview Answer

Anonymous

Mar 4, 2014

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