Pinned Tweet
50 system design interview questions, each with a worked answer.
URL shortener, WhatsApp, YouTube, Uber, rate limiter, Ticketmaster, payment system, ChatGPT, and 42 more.
Start with whichever one you'd least like to get tomorrow:
firecode.io/system-design?ut…
1
121
Buying at the lowest price is the wrong first move in Best Time to Buy and Sell Stock.
On 5, 6, 2, 9, 1, 7, 0 the cheapest day comes last. Track the cheapest price so far and the best profit so far: one pass.
1
42
Full walkthrough: youtu.be/5QJhF4X85qs
Practice it: firecode.io/?utm_source=twit…
6
1Password on Wednesday, SAP today. both reportedly in through employees' GitHub tokens.
system design question for the week: how do you give thousands of engineers access to code without any single stolen token being enough?
‼️ BREAKING: SAP has confirmed it was hit by a cyberattack.
The German software giant told news magazine DER SPIEGEL it took immediate steps to protect customers, and has so far found no sign that anyone accessed customers' business data. It did not answer detailed questions.
SPIEGEL's sources inside SAP say the attackers stole employees' login tokens, then used them to change and copy SAP source code on GitHub, possibly with the help of AI agents.
SPIEGEL reports the incident is known internally as "Project Granite".
1
1
137
a lot of those 10,000 are about to walk back into the same loop: LeetCode mediums, a system design round, "tell me about a time".
if that's you, which round scares you most right now?
SAP is preparing a plan to eliminate at least 10,000 positions to transform its software business for the artificial intelligence era, according to people familiar with the matter. bloom.bg/4fuzNpO
📷️: Kirill Kudryavtsev/AFP/Getty Images
71
thanksgiving tip for the recently laid off: when your aunt asks how the job search is going, just say "optimizing"
1
1
120
the line that did all the work today: "Your vault secrets are encrypted with keys that only you hold." so the attacker got names and emails, not passwords.
system design interview: you're building a password manager. what does the server store, and what must it never see?
We’re sharing an update about a recent security incident involving some of 1Password’s backend systems. 𝗡𝗼 𝗰𝘂𝘀𝘁𝗼𝗺𝗲𝗿 𝘃𝗮𝘂𝗹𝘁 𝗰𝗼𝗻𝘁𝗲𝗻𝘁, 𝗶𝗻𝗰𝗹𝘂𝗱𝗶𝗻𝗴 𝘀𝗲𝗰𝗿𝗲𝘁𝘀, 𝗽𝗮𝘀𝘀𝘄𝗼𝗿𝗱𝘀 𝗮𝗻𝗱 𝗼𝘁𝗵𝗲𝗿 𝘃𝗮𝘂𝗹𝘁 𝗶𝘁𝗲𝗺𝘀, 𝗼𝗿 𝘁𝗵𝗲 𝗸𝗲𝘆𝘀 𝘁𝗵𝗮𝘁 𝗽𝗿𝗼𝘁𝗲𝗰𝘁 𝘁𝗵𝗲𝗺 𝘄𝗲𝗿𝗲 𝗮𝗰𝗰𝗲𝘀𝘀𝗲𝗱 𝗼𝗿 𝗰𝗼𝗺𝗽𝗿𝗼𝗺𝗶𝘀𝗲𝗱 𝗱𝘂𝗿𝗶𝗻𝗴 𝘁𝗵𝗶𝘀 𝗶𝗻𝗰𝗶𝗱𝗲𝗻𝘁. We have confirmed that all customer vaults and credentials remain secure. Our services continue operating normally.
Independent cybersecurity experts have been engaged to validate our containment approaches and remediation efforts.
While we took immediate steps to contain the incident, the attacker gained access to some of our backend systems and accessed a limited amount of customer account information from a subset of our customers, including names and email addresses.
No action is required by customers, their 1Password accounts remain secure. As always, please keep alert to unexpected phishing attempts.
Your vault secrets are encrypted with keys that only you hold, so we can’t access them, and they cannot be retrieved from our systems.
You can read more about the steps we’ve taken on our blog at: 1password.com/blog/update-on…
2
112
SQL, no running it first:
table t has 5 rows. 2 of them have email = NULL.
SELECT COUNT(*), COUNT(email) FROM t;
what comes back?
67
system design interviewer: "ok, and what happens at scale?"
me: "uh"
Microsoft, 24 hours into a global outage from a scalability bug: also "uh"
95
got laid off after 6 years of shipping production code?
the interview loop doesn't care.
it wants Merge Intervals in 20 minutes with a stranger watching. annoying, but very fixable
99
Interviewer: "Reverse a linked list."
Me: finally, one I know.
Interviewer: "Great. Now reverse it in groups of k."
1
97
System design interview:
Your ticketing site sells the same seat to two people during a big concert drop.
Where's the bug, and what do you change?
1
81
15 minutes left. your solution works but it's O(n²). do you try to optimize or spend the time on edge cases?
70
Java, no running it first:
Integer a = 127, b = 127;
Integer c = 128, d = 128;
System.out.println(a == b);
System.out.println(c == d);
What prints?
68
Nvidia is the company everyone's talking about today. If you've got an Nvidia interview coming up, here's what the loop looks like from candidate reports this year.
1
1
101








