Corey Ward @coreyward.dev · Jan 27

Next, ChatGPT 4o, Claude 3.5 Sonnet, and Amazon Nova Pro all arrived at the same solution that changes the behavior by reversing the whole array without reversing the order of the inputs. This introduces a bug and would depend on either a careful PR review or a test suite to catch it.

2 likes 1 replies

?

Replies

Corey Ward · Jan 27

Google Gemini Pro dropped the explicit handling that ensures the arrays are copied before being reversed, resulting in the inputs being mutated (creates a different bug). DeepSeek Chat V3 has the same solution as ChatGPT o1-mini (use slice + concat but behavior unchanged).