Logo
curl can send emails. Why? Because it can.
  • 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

Bucket sort Memes

Posts tagged with Bucket sort

Superiority

Algorithms Programming
10 months ago 512.9K views 0 shares
Superiority
When you discover that finding the top K frequent elements can be done in O(n) time using bucket sort or quickselect, and suddenly you're looking down on everyone still using heaps like it's 2010. The party guy in the corner just learned about the O(n log n) heap solution and thinks he's clever, while you're out here flexing your knowledge of linear time algorithms like you just unlocked a secret level in LeetCode. For context: Most people solve this problem with a min-heap (priority queue), which gives O(n log k) complexity. But the galaxy brain move is using bucket sort since frequencies are bounded by n, giving you that sweet O(n) linear time. It's the difference between being invited to the party and owning the party.

Today's picks

Where's The Love

Where's The Love

Programming
149.5M views 22 days ago
NordVPN

NordVPN

Sponsored
VPN
WINTOO Blue Light Glasses for Woman Men | 99% Blue Light Blocking Glasses for Computer Gaming TV Phone Screen Square Frame | Anti Eyestrain & UV Glare Protection - 5 Pair

WINTOO Blue Light Glasses for Woman Men | 99% Blue Light Blocking Glasses for Computer Gaming TV Phone Screen Square Frame | Anti Eyestrain & UV Glare Protection - 5 Pair

Affiliate
$12.99