ChatGPT can solve hard Leetcode problems ~4 chat messages. It gave me a solution with 2 functions, I gave back a test case which did not work, it corrected function 2 twice. Then I gave back another test failing, it corrected 1st function and it solved the problem.