Get the latest tech news

Gemini 2.5 Pro vs. Claude 3.7 Sonnet: Coding Comparison


This blog-post compares the coding capabilites of new Gemini 2.5 Pro experimental and Claude 3.7 Sonnet (thinking)

If you want to jump straight to the conclusion, I’d say go for Gemini 2.5 Pro, it’s better at coding, has one million in context window as compared to Claude’s 200k, and you can get it for free (a big plus). I hope this model will crush this one, as in all the other coding tests I’ve done, Claude 3.7 Sonnet has answered all of the LeetCode questions correctly. Gemini 2.5 got the answer correct and also wrote the code in the expected time complexity, but Claude 3.7 Sonnet fell into TLE.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of gemini

gemini

Photo of Claude

Claude

Photo of sonnet

sonnet

Related news:

News photo

Google’s new experimental AI model, Gemini 2.5 Pro, is now available to free users too

News photo

Google’s Gemini 2.5 Pro is the smartest model you’re not using – and 4 reasons it matters for enterprise AI

News photo

Hands on with Gemini 2.5 Pro: why it might be the most useful reasoning model yet