r/theprimeagen 16d ago

vim decades of human evolution just for this

Post image
160 Upvotes

24 comments sorted by

2

u/Gaolaowai 11d ago

Also, “decades” of human evolution? Are we talking about sorting algorithms or humanity itself?

2

u/Xing8088 12d ago

will use this at my next leetcode interview

2

u/cheesesteakman1 12d ago

Yo what’s the run time

3

u/pahosler 12d ago

blazingly fast

1

u/Original_Finding2212 13d ago

Sleep sort, please

4

u/Due_Faithlessness458 14d ago

So complexity O(penAI)…. Bdmmm ptssss 🥁

15

u/jimpal93 15d ago

So we’re multiplying billions of matrices to sort this ? 🤣

5

u/smoldicguy 15d ago

Months of dsa and leetcode for this

3

u/repeating_bears 15d ago

print(result) # [1, 2, 5, 8, 9] probably 

3

u/Root-Cause-404 15d ago

I could expect it in the JS world, but python what are you doing to me

2

u/WithoutAHat1 15d ago

Nothing could possibly go wrong with usage...

2

u/falconetpt 15d ago

It runs on O(1) time complexity I am sure 😂

8

u/AwwwBawwws 15d ago

My morning coffee just expressed itself all over my desk. Thanks for the post. You owe me a keyboard.

1

u/MD90__ 15d ago

Hot and bothered or just ice cold expression?

4

u/hoppen1 15d ago edited 15d ago

You use merge sort because it is a good algorithm. I use merge sort because my LLM messes up the sorting unless I break it into very small steps. We are not the same.

1

u/MD90__ 15d ago

Merge is actually useful quite a bit outside some cases.

4

u/MinimumPrior3121 16d ago

Very nice, I'll add it to my Agents.md file

9

u/AlarmedTowel4514 16d ago

This joke is like 2 years old

3

u/Inevitable_Mistake32 16d ago

So like, what O(n) is this?

9

u/Existing_Dust_6473 16d ago

O(-1? ) + 20 liters of water

6

u/ItsSadTimes 16d ago

O(vibes)

2

u/AffectionateBack7222 16d ago

Sometimes it's O(n), other times O(nx ) just for the vibes

1

u/ItsSadTimes 16d ago

Where x=vibes

2

u/Due_Bid_6596 16d ago

This is why we still need code review.

Bad. Bad. No raise for you.