Learned a lot of Meta. Contrary to what most people say that you "don't learn anything at big tech", I've learned the most here. Ask me some hard shit. Be it algorithm or distributed system or low level c++. TC 800k
Design an elevator system with 4 elevators in 30 mins
what's the point of this? concurrency? sounds like just a queuing system with state machine. Or can just model it as a fault tolerance database with 4 nodes, and do some consensus algo on top of it. Every button clicked there will be some agreement on all elevators on who to serve, etc.
OOP concurrency design lol, I had that a few days ago and it went horrible, everything starts to go wrong the second you commit to a structure
You have an array of 100 integers, 0 through 99; which one am I thinking of, ya fuckin try-hard?
Guesser(a, b) //a, b denote the closed endpoints of the interval of integers to guess in let y = floor(a + (b - a) / 3) // arbitrary, so long as it's offcenter if AskTeller(y) = win then return y while(true) x <-- y y <-- a + b - x if y - x is odd then y <-- y + 1 //to take advantage of "lukewarm" q <-- AskTeller(y) if q = win then return y else if q = lukewarm then return (x + y)/2 else if q = hot then a <-- (x + y)/2 + 1 else if q = cold then b <-- (x + y)/2 - 1 AskTeller(y) If the guess y is equal to the correct number n, return win. Else if y is closer to n than the last guess, return hot. If y is farther away, return cold. If y is the same distance from n as the previous guess, return lukewarm. Reference: https://www.physicsforums.com/threads/find-optimal-strategy-to-win-1-100-hot-and-cold-guessing-game.115822/
Damn, can you guys find my future girlfriend too?
Design a bathroom for kids who are not potty trained.
Tech Industry
Yesterday
376
Joe Biden failed because of his Botox
2024 Presidential Election
2d
8914
🇺🇸 Presidential Debate Right Now 🇺🇸
2024 Presidential Election
Yesterday
3214
The debate was painful to watch 😢
Tech Industry
2d
22543
Hot take: don't be a "founding engineer"
Tech Industry
Yesterday
1150
Chinese majority teams @Meta
What teams were you on?