An Interesting Interaction with AI
Had a fun debate with ClaudeAI 3.5 Sonnet by Anthropic while solving a coding problem: I stored complements in a HashSet; Claude insisted on storing numbers and looking for complements. After a respectful disagreement, it realized its error and apologized. AI has a long way to go!
The other day, I was solving a classic coding problem: finding a pair in a given array that sums up to a target value. My approach was to store the complement (target - number) in a HashSet, as it seemed the most efficient way to handle the problem.
However, while bouncing ideas off ClaudeAI 3.5 Sonnet by Anthropic, it persuasively insisted that I should store the number itself and look for its complement in the HashSet. Despite my reservations, I appreciated the collaborative discussion and even considered its point of view.




After a respectful back-and-forth, ClaudeAI suddenly had an “aha” moment, realized its misunderstanding, and apologized for the confusion.
This moment highlighted how even advanced AI models like Claude can still make logical errors while solving problems and learn (albeit in its unique way).
🔍 Takeaway: AI is undoubtedly brilliant but still evolving. As much as it assists, critical thinking and a collaborative mindset remain essential when working with these tools.
AI has a long way to go!