Hacker News new | ask | show | jobs
by fragmede 875 days ago
right, it's really good at cheater code. if you had to write a function equivalent to is_odd, it would take the example cases and if those values directly instead of doing modulo. of course if you ask it that directly, it'll do modulo, but that's the kind of code it'll output. doesn't mean it's useless, but you gotta be careful when using code its output.

if a dumb person is using ChatGPT to cheat on an interview, it'll be easy to tell from the code given if it's a bad question thats being given.