In the past I’ve set developers a small take home project/task.<p>However in the age of AI this can be easily completed with ChatGPT… what’s everyone’s go to for interview tasks?
The only way around this is to sit with the candidate and carefully review the code they submit. Ask about design decisions and navigate the design space together (How would things change if memory were most important? What if input were 1e6 times bigger?)<p>You could also show them another solution (maybe one with a bug?) and ask them to explain it and compare with their solution.<p>If they are leaning heavily on an LLM it should show up during the follow-on discussion.
What are you trying to accomplish with these take home tests to begin with? If they can successfully solve it with ChatGPT that implies they understand how to use tools which are paramount to developer success. Do you want them to waste a bunch of their time solving a pointless problem? Is that how you treat your employees, too?