FWIW I asked ChatGPT to solve my standard SDE interview question, and it was only able to implement a brute force O(n^2) solution. When I asked it for a more efficient approach, it wrote a different O(n^2) approach, and lied and said it was O(n). Which doesn't exist for that Q.