Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They didn't specify needing to read the file line-by-line. You could read the whole file at once. There might not even be any new line characters in the file. You invented a requirement.


They specified "strings", which I interpreted as lines in a text file. But it doesn't actually matter, because I could make fundamentally the same comment no matter how words (or "strings") are separated.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: