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

I've used Copilot and chatGPT to help with algorithms where I'm unsure where to start. Actual case: "Write a performant algorithm to find the number of work days given a future date". It's trickier than you think and makes a great interview question.

Both AI tools came back with...garbage. Loops within loops within loops as they iterated through each day to check if the day is a weekend or not, is a leap year and to account for the extra day, is it a holiday or not, etc.

However, chatGPT provided a clever division to cut the dataset down to weeks, then process the result. I ended up using that portion in my final algorithm creation.

So, my take on AI coding tools are: "Buyer beware. Your results may vary".



I was never able to use them well, but cursor.ai together with Claude is starting to feel actually useful


How did you cite / reference the clever division it had copied out of the training set?




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

Search: