Previously, I wrote about my go-to coding interview question, which is a slight twist on a standard binary search. Just for fun, I was curious to see how ChatGPT, the newest AI powered conversation bot, would perform in a mock interview.
If you haven’t read the interview article before, here it is.
Preface
I started working on this article the week after ChatGPT launched in late November 2022. At that time, ChatGPT was able to write a perfect binary search, but was unable to get the “next smallest number” part. It would seem to be confused about the test cases. When one test case was fixed, another would be broken. I wasn’t sure how to weave that into a compelling story.
In December, ChatGPT caught the tech world’s attention. Each time I tried to log back on to continue my research, ChatGPT was out of capacity. Now after the New Year, I was finally able to log back in.
This time, I was able to get completely different results. A surprise even for me.