Pergunta de entrevista da empresa Pinterest

3. Write a program in your favorite programming language that will count the words from a given file and display the count. Also write down the test cases for it or different test scenarios.

Resposta da entrevista

Sigiloso

18 de out. de 2017

I wrote a code in Java I think it was correct. Then I listed down test cases such as 1. Valid file path with valid text file containing words 2. Empty File 3. Invalid file path 4. Extremely long file path 5. Corrupted text file 6. Binary file such as JPEG etc.