Logo
Keep calm and git commit.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • 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
4 months ago 386.5K 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

Littlefa 1.5" Free Label Gift Stickers,Free Stuff Stickers for Freebies Small Business Handmade Gift Bags Packaging 500 PCS

Littlefa 1.5" Free Label Gift Stickers,Free Stuff Stickers for Freebies Small Business Handmade Gift Bags Packaging 500 PCS

Affiliate
$9.99
Is Not That The Best Thing To Do

Is Not That The Best Thing To Do

Debugging
38.4K views 2 years ago
Git Commit Git Push Oh Fuck

Git Commit Git Push Oh Fuck

Git
379.3K views 4 months ago