π Hi, I'm Michael! I put together this interview guide with questions and resources I encountered over the course of 50+ technical interviews at companies anywhere from startups to FAANG to hedge funds.
It's not meant to be an exhaustive list, but it's a great place to start if you're studying for interviews! :)
π’ Big shoutout to everyone who contributed questions & resources!! π’
π Want to add questions/resources? Make a PR! π
Applying to SWE jobs or internships?
Autofill all your applications in a single click.
Not quite ready to jump into problem solving? Check out this list of crash course/review content to brush up on concepts before working on the problems
Resource | Notes |
---|---|
Crash Course on Data Structures | Great crash course for everything DS β good refresher |
10 Most Important Concepts for Coding Interviews | Quick overview of important concepts, helpful to identify what to focus on |
Linked List Review | Self explanatory |
BFS and DFS Review | Self explanatory |
Binary Search Review | Self explanatory |
Stacks and Queues Review | Self explanatory |
Trees Review | Self explanatory |
Heaps Review | Self explanatory |
Hash Table Review | Self explanatory |
Recursion Review | Self explanatory |
Here's the list you've been looking for! I've categorized the questions by their overarching category/concept, with notes on tips and what company asked me (or one of the contributors) the question.
Important Note: The companies that asked these questions are self-reported from repo contributors and per my memory. Companies are constantly changing their interview bank, so don't read too much into it!
π‘ Note: I encountered these questions multiple times over the course of my interviews. Make sure you know these well since many future problems will build off of your knowledge of these concepts! Feel free to start with these questions or come back at the end to test your knowledge :)
Question | Difficulty | Company/Notes |
---|---|---|
Valid Parentheses | π© | Meta, Microsoft |
Two Sum | π© | More than 5 companies |
Longest Common Prefix | π© | Amazon, Google |
Merge Sorted Array | π© | Meta, Microsoft |
Best Time to Buy & Sell Stock | π© | Citadel, Amazon |
Number of Islands | π¨ | Palantir, Bloomberg |
Spiral Matrix | π¨ | Citadel, Palantir |
Validate Binary Search Tree | π¨ | Twitter, Airbnb |
Coin Change | π¨ | Meta, Google |
Question | Difficulty | Company/Notes |
---|---|---|
Search Insert Position | π© | |
Binary Search | π© | Wasn't asked directly, but definitely important to know |
Remove Duplicates from Sorted Array | π© | Amazon, Microsoft |
Find First and Last Position of Element in Sorted Array | π¨ | Meta, Yelp |
Longest Substring Without Repeating Characters | π¨ | Coding challenge problem |
Search in Rotated Sorted Array | π¨ | Meta, Google |
Container with Most Water | π¨ | Startup |
Valid Sudoku | π¨ | Tesla, Microsoft |
Top K Frequent Elements | π¨ | Palantir |
Merge K Sorted Lists | π₯ | Meta |
Question | Difficulty | Company/Notes |
---|---|---|
Reverse String | π© | |
Valid Parentheses | π© | Classic question |
Length of Last Word | π© | Good problem to get comfortable with string operators/edge cases |
Valid Anagram | π© | Startup |
Unique Email Addresses | π© | Coding challenge problem |
Isomorphic Strings | π© | Tesla |
Decode String | π¨ | Netflix |
String Compression | π¨ | Amazon |
Longest Substring Without Repeating Characters | π¨ | Meta |
Question | Difficulty | Company/Notes |
---|---|---|
Reverse Linked List | π© | Citadel, Meta |
Palindrome Linked List | π© | Duolingo |
Linked List Cycle | π© | Startup |
Remove Nth Node From End of List | π¨ | Meta |
Swap Nodes in Pairs | π¨ | Uber |
Add Two Numbers | π¨ | Slack, Meta |
Copy Linked List with Random Pointer | π¨ | Citadel (Final round), Startup (Phone screen) |
Odd-Even Linked List | π¨ | Meta |
Question | Difficulty | Company/Notes |
---|---|---|
Diameter of Binary Tree | π© | Bloomberg |
Balanced Binary Tree | π© | Zoom |
Symmetric Tree | π© | Asana |
Path Sum | π© | Meta |
Binary Tree Level Order Traversal | π¨ | Twitch |
Delete Node in a BST | π¨ | Amazon |
Validate Binary Search Tree | π¨ | Microsoft |
Max Area of Island | π¨ | Palantir (Final round) |
Binary Tree Right Side View | π¨ | Meta (Final round) |
Serialize and Deserialize Binary Tree | π₯ | Meta (Final round) |
π‘Note: DP questions aren't commonly tested for internship & new-grad roles at FAANG companies, but it doesn't hurt to get a good grasp of the basics!
Question | Difficulty | Company/Notes |
---|---|---|
Climbing Stairs | π© | Coding challenge question |
House Robber | π¨ | Citadel |
Best Time to Buy and Sell Stock with Cooldown | π¨ | Citadel |
Longest Palindromic Substring | π¨ | A Stanford CS homework question |
Maximum Subarray | π¨ | NVIDIA |
Longest Increasing Subsequence | π¨ | Meta |
π‘ Note: Big-O questions are asked in just about every technical interview (especially in FAANG), so be sure that you are familiar and comfortable with time and space complexity questions!
Resource | Notes |
---|---|
Introduction to Big O Notation and Time Complexity | Great refresher video to review key concepts for time/space complexity |
Big-O Cheat sheet | Self explanatory |
Practice Questions on Time Complexity Analysis | GeeksForGeeks post with a few practice questions |
π‘Note: System design questions are an important part of the technical interview that allow you to showcase that you are more than just a code monkey. Take a step back and look at the bigger picture β who is your customer, what are your constraints, how would you manage security/traffic? Show that you're able to design an effective program β and use common sense.
Videos/Resources |
---|
System Design Interview with Ex-Googler |
Tiny URL |
Parking Lot System |
Uber App Design |
Tinder-like Service |
π‘ Note: Threading/OS questions are pretty uncommon for most SWE interviews β I was only asked OS questions when interviewing for quantitative finance firms and some system-specific roles (performance engineering) at FAANG companies!
Videos/Resources | Notes |
---|---|
Intro to Processes & Threads | Great intro video to basic concurrency |
Difference between process and thread | Important concepts to know |
Difference between forking and multithreading | Important concepts to know |
Commonly Asked Operating Systems Interview Questions | GeeksForGeeks post for OS interview prep |
People often overlook behavioral questions β and shockingly, I've heard of friends that have aced the coding parts of interviews only to struggle and ultimately get rejected because of the behavioral interview. Here's my favorite blog post on how to approach behavioral interviews!