Logo
Code quality metric: WTFs per minute.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Communist-sort Memes

Posts tagged with Communist-sort

Our Sorting Algorithm

Algorithms Javascript Programming
6 months ago 450.1K views 0 shares
Our Sorting Algorithm
Why sort when you can just make everything equal? This "sorting algorithm" calculates the average of all array elements and then replaces every single value with that average. Technically, the array is now sorted (all elements are equal, so they're in order). Technically, you've also destroyed all your data. But hey, O(N) time complexity and O(1) space complexity - can't argue with those metrics. It's the programming equivalent of solving income inequality by giving everyone the exact same salary. Sure, there's no more disparity, but also your billionaire and your intern now make the same amount. Problem solved, comrade.

Today's picks

Where's The Love

Where's The Love

Programming
149.4M views 7 days ago
Vintage Metal Sign Morse Code Binary Machine,Text Art Poster Home Wall Decor, Suitable For Walls, Doors, And Fences,Aluminum Printed Plaque 8×12Inch

Vintage Metal Sign Morse Code Binary Machine,Text Art Poster Home Wall Decor, Suitable For Walls, Doors, And Fences,Aluminum Printed Plaque 8×12Inch

Affiliate
$9.99
The Intern Is Not Gonna Make It Bro

The Intern Is Not Gonna Make It Bro

Git
645.0K views 1 year ago