3 ms·
For fun, I fed this interview question to GPT-4 with aider. See the chat transcript linked below. The data structures look sensible and it did most of what the
by anotherpaulg 3y ago
For fun, I fed this interview question to GPT-4 with aider. See the chat transcript linked below.
The data structures look sensible and it did most of what the interviewer wanted on the first try.
It did make the wrong initial assumption that we wanted 2 unique pages per day. When prompted with a clarification, it made a sensible fix.
When asked to optimize, it went for big hammers like parallel processing and caching. As opposed to saving memory by only storing one file in the data structure as the author discussed.
https://aider.chat/share/?mdurl=https://gist.github.com/paul-gauthier/6ae6feabe0b18decf6ee39c5377343ce https://aider.chat/share/?mdurl=https://gist.github.com/paul...