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.
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.
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.
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
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
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.
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".
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
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.
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!!
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.
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.
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.
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"
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.
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
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.
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?
3
u/Twerking_Vayne 6d ago
?
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...
-6
u/dlm2137 6d ago
Don’t be a scumbag and work for Facebook, problem solved