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
107
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…
1
74
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?
34
system design interviewer: "ok, and what happens at scale?"
me: "uh"
Microsoft, 24 hours into a global outage from a scalability bug: also "uh"
91
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
95
Interviewer: "Reverse a linked list."
Me: finally, one I know.
Interviewer: "Great. Now reverse it in groups of k."
1
92
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
77
15 minutes left. your solution works but it's O(n²). do you try to optimize or spend the time on edge cases?
68
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?
67
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
90
two things worth knowing before you go in, per recent reports:
> there's an in-person round at an Nvidia office before any offer
> using ChatGPT or other outside tools mid-interview gets you disqualified
1
15

