Motricity Interview Question: Technical question. Count wor... | Glassdoor

Interview Question

Senior QA Engineer Interview

Technical question. Count words in file. You have to ignore

  however many white spaces and special characters

Interview Answer

1 Answer


Loop through the characters in file and set a flag everytime space is encountered. Increment count by one and also check that a character before was not a blank space

Interview Candidate on Apr 1, 2010

Add Answers or Comments

To comment on this, Sign In or Sign Up.