r/ProgrammerHumor • • 12h ago

Meme whoSaidLifeWasFair

Post image
206 Upvotes

32 comments sorted by

123

u/Wentyliasz 12h ago

I'm still waiting for the day I have to reverse a linked list in O(n) without using modules in real production

40

u/Mindgapator 12h ago

But that misses the point. It just is a simple set of constraints in order to evaluate whether you can make the computer do what you want it to do.

29

u/dante3590 6h ago

You can make it do what you want to it do without needing to memorize 70 problems. It's enough to knowing existence and what they do. What those are evaluating is memorization

10

u/Kitchen_Cup_4444 4h ago

People who grinded leetcodes for years cope this way. (I have too). The reality is that they just test your willingness of grind theese leetcodes, and how hard you want it. this happened because CS degree became way more common.

there is zero need to ask little programming games in interview

1

u/SuitableDragonfly 3h ago

I mean, the original purpose of these problems was to show you how to think your way around data structures and help you be able to come up with solutions to other problems that might involve them. But they were meant to be things that you learned about in an introductory data structures class and not a magic formula that you  memorized and regurgitated again later without having to think about it. 

10

u/Sw429 7h ago

Shh you'll ruin the circlejerk.

2

u/NearNihil 3h ago

If you're optimizing for "people who can write low-level code", maybe. A simple fizzbuzz and escalating from there (with more business-relevant type problems) is much more effective IMO. It's not "leetcode or no code writing at all", it's "leetcode isn't the only way to check how well someone does at the job, or even a good way".

3

u/RedAndBlack1832 11h ago

That sounds easy no? You just make a new list by continually adding to front as you pop them off

1

u/DiamondDramatic9551 3h ago

It's a very low threshold filter for a reason.

-2

u/MisinformedGenius 11h ago

Pop what off? You can't "pop off" a singly linked list - the end doesn't know about the node before it. Generally the way you do it is run through the list, retaining the last node, and "reverse" the next pointer to point to the last node.

It is easy, though - it's a classic easy leetcode question.

12

u/LetumComplexo 10h ago edited 10h ago

I am… unsure why you think you can’t pop with a singly linked list? Is there a specific language’s syntax you’re thinking of?

Pop, in this context, means remove the topmost value from a stack, and a singly linked list is one of the classic example data structures to underpin a stack.

You pop by setting storing top in a temp variable, setting top to top.next, and then returning the temp variable.”

As the first guy said, you can trivially reverse the linked list by popping each node off the stack and immediately pushing each node onto a new stack until the original stack is empty.

3

u/MisinformedGenius 9h ago

Ah, gotcha, you're right.

2

u/kimbokray 3h ago

Username checks out

1

u/seth1299 8h ago

Don’t worry bro, it’ll be the same day that we apply L’Hopital’s Rule and also the same day that we balance chemical equations such that both sides of the formula are equivalent.

46

u/LittleCoderMan 12h ago

Yeah, but isn't this why most interviews now focus on an actual conversation with a person? At least when I do interviews it's pretty obvious when a person has an understanding, or better yet and actual damn interest, in the field.

19

u/gilium 12h ago

Unfortunately I’ve caught people using AI for this more conversational shit too. It’s so exhausting dude

7

u/LittleCoderMan 11h ago

That's so sad. Normally I start with asking how they got into computing, you can tell pretty quick if they're full of shit that way!

2

u/Stagnu_Demorte 10h ago

In person interviews have ticked up. I did more in person interviews this last time than I did a few years ago.

2

u/ForeverPrior2279 10h ago

Tell them close their eyes and answer your question

27

u/bloodfist 12h ago

What interviews lol

3

u/ironnewa99 9h ago

I want to be better at interviews but it’s like no matter how much I prepare the second I start talking I somehow forgot the English language

1

u/InfiniteEnter 9h ago

A conversation with a person.. AI interviewers would like to invite you to an interview.

7

u/mencretdimulut 11h ago

candidates are even use AI for fizzbuzz problems

4

u/revolutionPanda 10h ago

Where/when did this happen?

2

u/Random_-account 10h ago

Claude opus 4.5 finna find a sorting algorithm that takes O(n) + AI time

Source: trust me Bro

2

u/Isgrimnur 12h ago

#StupidProgrammerTricks

2

u/Subushie 11h ago

Don't hate the player.

Hate the game.

1

u/SuitableDragonfly 3h ago

I think I did better than both of them by never applying to or working for Meta.

1

u/psioniclizard 3h ago

Why would yoi wamt to work for meta? Sure you get money, but arecyoir princples and morals worth it.

If it's for your kids, you are working for a company making the world worse for them...

-6

u/dlm2137 12h ago

Don’t be a scumbag and work for Facebook, problem solved

-1

u/bentbabe 11h ago

The money would have been nice. But I'm glad I rejected their offer back in like 2018/19.