GridVids
Sign in with YouTube

Did Gangnam Style Break YouTube's View Counter?

Mark watched
Don't Miss
Hide
Open in popup Open on YouTube

Vivek Gupta 1 month ago

In December 2014, YouTube posted something strange: "We never thought a video would be watched in numbers greater than a 32-bit integer... but that was before we met PSY."

Gangnam Style had crossed 2,147,483,647 views. That number isn't random. It's the largest value a signed 32-bit integer can hold: 2 to the power 31, minus 1. Add one more, and in Java the int wraps around to −2,147,483,648. A view count that goes negative.

YouTube's answer was a 64-bit counter, with a new ceiling of about 9.2 quintillion.

Here's the twist: they had moved the counter to 64-bit months earlier. A YouTube spokesperson later called the negative numbers an Easter egg, a playful animation, not a real overflow.

So nothing broke. Someone did the math before the limit arrived.

What's the next counter you think will hit its limit? Tell me in the comments.

Sources: YouTube's Google+ post, Dec 2014 (via CBC); Guinness World Records; YouTube spokesperson to Variety (via MakeTechEasier).

#SystemDesign #Programming #GangnamStyle #DSA #Java

Leave a like, comment, and subscribe for more.

Check out AlgoZenith: https://maang.in/

-----------------------------------------------

😃 ABOUT ME

I’m Vivek, an engineer, Ex-Googler, ICPC World Finalist turned educator, and founder of AlgoZenith. I’ve taught Data Structures, Algorithms, and Competitive Programming to over 3000+ students and worked with 10+ engineering colleges to bridge the gap between college learning and real-world tech careers. Through AlgoZenith, I help students crack top product-based companies and become industry-ready. On this channel, you’ll find videos on coding strategies, roadmaps, interview prep, problem-solving techniques, and everything you need to level up your software career. If that’s your thing, do subscribe and hit the bell icon so you don’t miss a thing 🙂

-----------------------------------------------

📲 SOCIALS

Instagram: https://www.instagram.com/vivekgupta.ai/ Twitter: https://x.com/vg19988 LinkedIn: https://www.linkedin.com/in/acraider/ Codechef (5 ⭐️): https://www.codechef.com/users/acraider Codeforces (Master, max. 2269): https://codeforces.com/profile/acraider

-----------------------------------------------

🏷️ TAGS

-----------------------------------------------

#️⃣ HASHTAGS

Education
#Vivek Gupta #learn to code #learn coding