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

absolutely not, in the real world you work with constraints and you can make simplifying assumptions.

"How large can the file potentially be" would be my first question. Depending on the size I might even throw sqlite, an RDBMS, or even a full text search engine at the problem. Or I might not, it depends on the actual scenario.

But if your description is to keep it simple I'm going to do that in good faith.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: