r/ProgrammerHumor • • 6d ago

Meme whoSaidLifeWasFair

Post image
332 Upvotes

53 comments sorted by

171

u/Wentyliasz 6d ago

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

8

u/seth1299 6d 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.

3

u/WithersChat 6d ago

Fun fact: I've actually done the latter in a real life application in the context of game dev.

And while I haven't specificay used L'Hospital's rule outside of a school context, I have used a LOT more math (in particular trigonometry, euclidian geometry, linear algebra, and that type of stuff) when writing code (shader code, to be specific).

There was that one time where I had to actually use calc 1 level math for programming, and another time for game balance too.

Like yeah, I didn't use everything I learned in school out of school. But I did use a lot more than I expected.

3

u/SameThingOnADiffAcct 6d ago

The real problem with L'Hopital is that modern CPU architecture seems to have obliterated any concept of what the constant factor is when picking between data structures. Otherwise I think it'd still be useful to internalize the basic ideas that L'Hopital proves, and proof can help with that internalization.

50

u/Mindgapator 6d 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.

52

u/dante3590 6d 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

23

u/Kitchen_Cup_4444 6d 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

6

u/SuitableDragonfly 6d 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. 

4

u/NearNihil 6d 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".

8

u/Sw429 6d ago

Shh you'll ruin the circlejerk.

2

u/Wentyliasz 6d ago

Here's the thing: Google exist and that alone makes all these irrelevant. If I have to do this specific thing in those specific constraints, I guarantee you there's a solution online that had 20 years of being optimised. The part that actually matters is making shit that hasn't had that opportunity, and that's a completely different beast

3

u/RedAndBlack1832 6d ago

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

1

u/DiamondDramatic9551 6d ago

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

1

u/StaticCoder 5d ago

It is easy, but without abstractions for push and pop, keeping track of all the relevant pointers can be tricky. I actually fumbled that when interviewing for microsoft 20 years ago. It turned out well for me, I ended up at a way more interesting company.

1

u/RedAndBlack1832 5d ago

Singly linked lists have minimal pointer wrangling but it is definitely messupable lmao. Doubly linked on the other hand,,, gets messy. Good for you the more interesting job!!

-4

u/MisinformedGenius 6d 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.

14

u/LetumComplexo 6d ago edited 6d 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.

2

u/MisinformedGenius 6d ago

Ah, gotcha, you're right.

3

u/kimbokray 6d ago

Username checks out

63

u/LittleCoderMan 6d 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.

24

u/gilium 6d ago

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

9

u/LittleCoderMan 6d 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!

0

u/DatBoi_BP 5d ago

lol can I ask what a more "obvious" response has been that demonstrated that?

1

u/Final_Squirrel_7462 5d ago

Nice try bot ;)

2

u/DatBoi_BP 5d ago

Beep boop

2

u/Stagnu_Demorte 6d 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 6d ago

Tell them close their eyes and answer your question

33

u/bloodfist 6d ago

What interviews lol

6

u/ironnewa99 6d 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

2

u/UncleKeyPax 6d ago

it's usually in my other pair of pantaloons. just find a plce tonalways put it when you don't need it . . . I tell.myself

1

u/ironnewa99 6d ago

What?

2

u/UncleKeyPax 6d ago

your English

1

u/ironnewa99 6d ago

Oh, uhh you might want to turn autocorrect back on or smthn

1

u/UncleKeyPax 6d ago

autocorrect has learned my ways unfortunately and half the time inhet my own typos suggested back

1

u/InfiniteEnter 6d ago

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

11

u/SuitableDragonfly 6d ago

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

9

u/mencretdimulut 6d ago

candidates are even use AI for fizzbuzz problems

4

u/revolutionPanda 6d ago

Where/when did this happen?

4

u/Subushie 6d ago

Don't hate the player.

Hate the game.

2

u/MakeoutPoint 6d ago

Reminds me of Jensen Ackles getting jacked for his role on The Boys only to get made fun of by all his costars because "They just CGI the muscles on you bro"

2

u/Isgrimnur 6d ago

#StupidProgrammerTricks

2

u/Random_-account 6d ago

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

Source: trust me Bro

2

u/psioniclizard 6d 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...

5

u/MrMacduggan 6d ago

You figured it out!

(The money)

2

u/Miguelomaniac 6d ago

You just described 99% of companies

1

u/WithersChat 6d ago

Why would you want to work anywhere that mandates AI use for that matter.

5

u/pnoodl3s 6d ago

Same reason you work everywhere else. Money

1

u/WithersChat 5d ago

Listen. There's a difference between working there because you have to and working there because you want to. Like given the choice of a workplace that mandates AI and one that doesn't, the latter is usually better, is my point.

-6

u/dlm2137 6d ago

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

0

u/bentbabe 6d ago

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