By Ben Rogojan
Software engineering interviews, like other technical interviews, require plenty of preparation. There are a number of subjects that need to be covered in order to ensure you are ready for back-to-back questions on algorithms, data structures, design, optimization and honestly just an ever growing basket of subjects.
So I created a checklist on my last round of interviews that covers many of the popular topics.
To help you keep track of your progress, we've compiled a comprehensive checklist of the same problems listed below; that list can be found here.
Warm Up With The Classics
How did you do? Take a moment and rate yourself on these classics. We have been asked most of these at some point in the interview process---and often early on as weed-out style questions. They often have less to do with algorithms and data structures, but still require a good understanding of loops and arrays (yes, an array is a data structure).
Algorithms And Data Structures
Pre-Study Problems
Before going through the video content about data structures and algorithms, consider trying out these problems below. See if you can answer them. This will help you know what to focus on.
- 985. Sum of Even Numbers After Queries
- 657. Robot Return to Origin
- 961. N-Repeated Element in Size 2N Array
- 110. Balanced Binary Tree
- 3. Longest Substring Without Repeating Characters
- 19. Remove Nth Node From End of List
- 23. Merge k Sorted Lists
- 31. Next Permutation
Algorithms And Data Structures Videos
Data Structures
- Data Structures & Algorithms #1 --- What Are Data Structures? --- Video
- Multi-dim --- Video
- Dynamic Arrays --- Video
- Resizing arrays --- Video
- Data Structures: Linked Lists --- Video
- Core Linked Lists Vs Arrays --- Video
- Pointers to Pointers --- Video
- Data Structures: Trees --- Video
- Data Structures: Heaps --- Video
- Data Structures: Hash Tables --- Video
- Phone Book Problem --- Video
- Data Structures: Stacks and Queues --- Video
- Using Stacks Last-In First-Out --- Video
- Data Structures: Crash Course Computer Science #14 --- Video
- Data Structures: Tries --- Video
Algorithms
- Algorithms: Graph Search, DFS and BFS --- Video
- BFS(breadth-first search) and DFS(depth-first search) --- Video
- Algorithms: Binary Search --- Video
- Binary Search Tree Review --- Video
- Python Algorithms for Interviews --- Video
- Algorithms: Recursion --- Video
- Algorithms: Bubble Sort --- Video
- Algorithms: Merge Sort --- Video
- Algorithms: Quicksort --- Video
Big O Notation
- Introduction to Big O Notation and Time Complexity (Data Structures & Algorithms #7) --- Video
- Harvard CS50 --- Asymptotic Notation --- Video
- A Gentle Introduction to Algorithm Complexity Analysis --- Post
- Cheat sheet --- Post
Dynamic Programming
- Dynamic Programming (Think Like a Programmer) --- Video
- Algorithms: Memoization and Dynamic Programming --- Video
- 6.006: Dynamic Programming I: Fibonacci, Shortest Paths --- Video
- 6.006: Dynamic Programming II: Text Justification, Blackjack --- Video
- Dynamic Programming --- Post
String Manipulation
- Coding Interview Question and Answer: Longest Consecutive Characters --- Video
- Sedgewick --- Substring Search --- Video
Interview Problem Walk-throughs
- Google Coding Interview --- Universal Value Tree Problem --- Video
- Google Coding Interview Question and Answer #1: First Recurring Character --- Video
- Find min and max element in a binary search tree --- Video
- Find height of a binary tree --- Video
- Check if a binary tree is binary search tree or not --- Video
- What Is Tail Recursion? Why Is It So Bad? --- Video
Post-Study Problems
Now that you have studied for a bit, and watched a few videos, let's try some more problems!
- Bigger Is Greater
- 6. ZigZag Conversion
- 7. Reverse Integer
- 40. Combination Sum II
- 43. Multiply Strings
- Larry's Array
- Short Palindrome
- 65. Valid Number
- Bigger is Greater
- The Full Counting Sort
- Lily's Homework
- Common Child
- 459. Repeated Substring Pattern
- 27. Remove Element
- 450. Delete Node in a BST
- 659. Split Array into Consecutive Subsequences
- Number of Subarrays with Bounded Maximum
- Combination Sum IV
- Best Time to Buy and Sell Stock with Cooldown
- Longest Repeating Character Replacement
- Swap Nodes in Pairs
- Binary Tree Right Side View
- Flatten Nested List Iterator
- Binary Tree Level Order Traversal
- Binary Search Tree Iterator
- Maximum Length of Pair Chain
- Split Linked List in Parts
Operational Programming Problems
Some companies won't ask you algorithm problems. Instead, they might focus more on implementation and operational problems. These are usually more niche and involve practical problems, like looping through data and performing a task of some sort. These types of problems don't usually require as much practice because it is more about taking basic concepts like arrays and HashMaps and keeping track of what you are doing to them.
- Kangaroo Problem
- Breaking Records
- Find A Stringiter
- No Idea!
- Days of the programmer
- Leaderboard
- Word Order
- Sherlock And Squares
- Equalize The Array
- Apples And Oranges
- More Operational Style Questions
System Design Videos
System design questions are crucial questions that show you are more than just a coder. You need to be able to think big picture as an engineer. Where do certain services belong, what kind of servers do you need, how would you manage traffic, etc. All of these ideas show that you are able to design software, not just code what people tell you to code.
- Parking Lot System --- Video
- Whats App --- Video
- Uber design --- Video
- Instagram --- Video
- Tinder Service --- Video
Operating Systems
Operating system questions are a little more rare, but it is good to have a solid understanding of concepts like threads, scheduling, memory, etc., even if it is just a basic understanding. It is very embarrassing to get asked what the difference is between a process and a thread and not know the answer.
- Commonly Asked Operating Systems Interview Questions
- What is Translation lookaside buffer?
- Why does Round Robin avoid the Priority Inversion Problem?
- Interrupt Vs System Call---What is 'inode' in file system?
- Operating System Interview Questions and Answers --- Part I
- What is a kernel --- Gary explains
- Round Robin Algorithm Tutorial (CPU Scheduling)
- The Magic of LRU Cache (100 Days of Google Dev) --- Video
- MIT 6.004 L15: The Memory Hierarchy --- Video
- Interrupts --- Video
- Scheduling --- Video
Threads
- User Level thread Vs Kernel Level thread
- Intro to Processes & Threads --- Video
- Difference Between Process and Thread --- Georgia Tech --- Advanced Operating Systems --- Video
- Difference between forking and multithreading
Object Oriented
Similar to operating systems, not every interview will ask you about object-oriented programming, but you never know. You want to make sure you remember your basics from your computer 162 course.
- Java Programming Tutorial --- 49 --- Inheritance --- Video
- Java Programming Tutorial --- 55 --- Introduction to Polymorphism --- Video
- Java Programming Tutorial --- 58 --- Abstract and Concrete Classes --- Video
- Java Programming Tutorial --- 57 --- Overriding Rules --- Video
- Java Programming Tutorial --- 59 --- Class to Hold Objects
- Object-Oriented Programming --- Video
Design Patterns
If you were like us, we weren't taught about all the various design patterns. So it's good to get an understanding of how they work and why you would use them. Some interview questions can be as simple as, "Why would you use a factory class?"
- Factory Design Pattern --- Video
- Observer Design Pattern --- Video
- Adapter Design Pattern --- Video
- Facade Design Pattern --- Video
- Chain of Responsibility Design Pattern --- Video
- Interpreter Design Pattern --- Video
- Singleton Design Pattern Tutorial --- Video
- Chapter 6 (Part 1) --- Patterns (video) --- Video
- Head First Design Patterns --- Video
SQL
This is the last section. Many of you probably won't be asked that many SQL questions. However, I always think it is good to have in your back pocket.
SQL --- Problems
- 262. Trips and Users
- 601. Human Traffic of Stadium
- 185. Department Top Three Salaries
- 626. Exchange Seats
- Hackerrank The Report
- 177. Nth Highest Salary
- Symmetric Pairs
- OccupationsPlacements
- Ollivander's Inventory
SQL --- Videos
- IQ15: 6 SQL Query Interview Questions --- Video
- Learning about ROW_NUMBER and Analytic Functions --- Video
- Advanced Implementation Of Analytic Functions --- Video
- Advanced Implementation Of Analytic Functions Part 2 --- Video
- Wise Owl SQL Videos --- Video
Post SQL Problems
- Binary Tree Nodes
- Weather Observation Station 18
- ChallengesPrint Prime Numbers
- 595. Big Countries
- 626. Exchange Seats
- SQL Interview Questions: 3 Tech Screening Exercises (For Data Analysts)
Interviewing can be tough because you can feel like you are making no progress. Having this study guide will help you track your progress and give you a better read on how you are doing!
Good luck!
Also, if you are looking to read/watch more great posts or videos:
Connecting To Big Query Using Jupyter Notebook On SaturnCloud Part 2
Three Books You Should Read As A Data Scientist
Hadoop Vs Relational Databases
How Algorithms Can Become Unethical and Biased
How To Improve Your Data Driven Strategy
How To Develop Robust Algorithms
4 Must Have Skills For Data Scientists
SQL Best Practices — Designing An ETL Video
Top comments (91)
I think we really need to face a reckoning in our profession. And the reckoning is this: requiring an overload of stuff that's simply not-important on-the-job just to get through the interviewing process and land a position.
Some of it is mildly useful for the actual job. But the rest of it is a bunch of hurdles that we don't need to put in the way of people.
And we need to do a much better job of building bridges into the profession that actually build people up into valuable devs.
The current approach of "leetcode" gatekeeping to the industry is a failure.
I think many developers and engineers hold this same sentiment. Most of us study really hard to figure out how to reverse a binary tree into a linked list blah blah blah(I hope you get thats a joke)....and then we get the job and....
We are just calling APIs of libraries developed by people before us. So what was the point. So yes, there are many of us that agree. But, since this is still the current way, I hope this list can be useful but would also like to see it deprecated :).
It's hard to demand change when you're interviewing for a new job. However, once you have the job, I think it's a lot easier to demand change. Be that person who asks, "Why are we doing interviewing like this?" Be that person who says, "This interview question provides no useful signal." Be that person who says, "We shouldn't use Leetcode / Hackerrank / etc. as a filtering step."
Very true! Still thanks for the great list of 'todo\'s'
I'm very glad to see that this is the top comment on the article. Honestly, these hiring processes that start with some algorithm challenges straight out of that controversial "Cracking The Coding Interview" book benefit nobody, but hurt everyone.
It reinforces the "imposter syndrome" experienced by many perfectly competent candidates and companies basically rob themselves of valuable prospective employees by insisting on taking this approach to interviewing.
As someone looking for their first frontend job... Can I solve a bunch of advanced algorithm challenges? Nope, I don't have the computer science background for that. But can I build a reusable component library, consume REST/GraphQL API's to communicate with the server and display data in a sensible way on the client-side? I sure can.
Yet, people like me are being glossed over, even though we are perfectly able of solving real-world problems.
I suppose another way to look at it each time this happens is "the trash took itself out". As in, if this is their hiring practice and they see nothing wrong with it, would I like working for that company anyway? Though, that doesn't help me get my foot in the door.
But they need to know your skills are above average as to effectively Google search the simple solution to their "super project" needs.
100% true, I'm learning frontend, and some of these examples overwhelm me, but I still find the challenge of learning it interesting
Don't worry about it too much, it's now 3 years since I made that comment. I still suck at solving these "brainteasers" that are pointlessly used at interviews and I'm working for a nice company where I'm well respected, have been told I'm approaching senior level very quickly and am involved in training juniors. I don't bother practicing brain teasers at all, in fact. I instead put my effort into learning "advanced" React features, NextJS, some AWS basics and now looking into Svelte and judging by the salary increases, it was a good idea.
This is all well and good...brings back a lot of memories from undergrad school.
But after enduring such an interview from a company, PLEASE PLEASE PLEASE don't forget to then ask your interviewer how they've used/applied said "algorithms, data structures, design, optimization and honestly just an ever growing basket of subjects" in their CURRENT work.
If you get a blank stare back, you'll know that you were just put through an "interview" that was essentially algorithm hazing and nothing more. I'd seriously question whether or not I'd want to work for this company.
This x 1000. I interviewed with a Big Name Company once, early in my career, and was asked some question about implementing a AVL tree or some such. I asked the guy ( and it was a guy because they all were at Big Name Company, but that's a diff issue ) if he had ever, in his entire working life at that place, ever implemented an AVL tree, or any other primitive data structure from scratch. When he said "no", I asked why they were asking me how to do it. He said because they always asked that question. I said I'd answer when I had my data structures book handy. I got the gig anyway.
These questions are pointless. I'm a hiring manager now. I never ask interviewees questions about how to implement basic structures or algorithms. If someone is rolling their own now, they need to have a damn good reason for it. However, I will ask questions to tease out if they understand WHEN AND HOW TO USE different algorithms, structures, design patterns, etc, and the tradeoffs associates with those choices. I think that is fair game, and also a better indicator of what kind of software engineer you will be.
If you can code up a quick sort, but I don't ask you that kind of sort to use in a given situation , and then don't find out until after I hire you that you use bubble sorts for everything, me knowing you can code a quick sort is not terribly helpful.
You were asked for AVL tree? Jesus
I was asked - what is the data structure that databases usually use to store data. I said B trees or B+ trees (we were discussing indexing, fan-out et.. ). Then he said ok now implement a B tree with all the crud operations. I told him I can explain the logic to you, but I don't think i can code that. Maybe I could, but it would take me a log time to convert the logic into code.
Thirthirded
100% this! Same with not allowing you to use Google as you attempt to formulate a solution. I assume you would be allowed to use Google day-to-day as you perform your job, right?
Exactly! I'm disappointed by how many people accept these whiteboarding rituals as a necessary or unavoidable evil. They aren't. There are plenty of companies out there that offer more sane alternatives that mirror day-to-day work.
@leesmith That's super good advice. I always shout my guts out to people I chat with that this type of convention or practice that is going on in the soft dev world is so useless but more often than not I get that 'stop cribbing' look back or just some ignorant view point back which makes me think that people are just whizzing through life mindlessly, like they don't actually care. Anyways, I am definitely gonna raise this question in my next interview of how they have used what they are asking me in their work on a day to day basis. It'll be super fun (and maybe a little risky) xd
Seconded!!
Seems like I will never be ready :)
In first interview. I was asked to sum up all integers in an array. I used reduced method.interviewer asked me to use for loop instead. I completely froze. They laughed at me an sent me out. That was a push in the right direction for me.
I was asked:
OOP & all related concepts on Java. It was very detailed. (answered 85%)
Data Structures & Algorithms (BST, RB Tree, Sets, Maps, Hashing, Graphs, BFS, DFS, MSP, etc..) (answered 90%)
SQL: they nearly asked every single keyword on SQL. (answered 99%)
Implemented a LinkedList on a blackboard. Then they made me do couple of sorting algorithms on that.
HTML & CSS live-coding.
And they rejected me yesterday because I don't know JS Which was already very clear on my resume. This was a junior FE position :)
Welcome to interviewing....
Most companies have no clue how to interview and the process is similar for senior and Junior. I interviewed at another company for an internship where I was asked to implement a LinkedList in Java even though I made it clear I was more into Javascript. But somehow I did well because I was prepared for anything. The interview gave a glowing review and said he was really impressed. The recruiter contacted me to ask if I had another offer I was considering, I said No. Then he said they were going to interview other candidates. Next thing I heard was that they picked other guys.
I just kep working harder. Months after that I got a dream offer. I am glad I missed that opportunity.I would have had to start form an intern. But I got another offer as solid mid-level Engineer. Just keep pushing. Itäs a matter of time. I was rejected around 300times , some after 6 rounds.
Don't let this stress you out. You don't need to do every problem to be ready. I just recommend doing a few of each. Doing an interview or two, seeing where you need to study and then do more :).
I did my first interview today. It was bad. Not that bad as I imagined. I could answer what I learned since from the start. I was already aware but rediscovered that I need to learn a lot.
Thanks for the boost!
We have all had that first interview. I remember my first interview at Amazon. The very first question shut me down and I froze and just couldn't think of a good answer. Luckily the interviewer allowed me to move on so I could get some answers in. But those first interviews show you what you don't know...it's painful but good :);
Haha exactly. Happened to me either. I asked to "move on" and get back to that question "later".
You know something's going to be a great resource when it already has a whole bunch of "saved for later" tags 😃
Great list! Love that you included more than just algorithms (like system design, etc too). Even if you're not interviewing right now, it's a great idea to just pick a few videos off the list and watch them :)
Thanks!
Thanks for your kind words! Yes almost 1k saves as of right now. I really tried to make it comprehensive. Also, that isn't meant to intimidate anyone. The reason I add a checklist is so you can do a few in each section and go for an interview. Figure out where you need to work on things and focus on that area.
Took only 3 days for that number to jump up to 2000. Just goes to show how awesome this checklist is. Thanks for creating this!
It's crazy how fast it got liked o.O
Questions like these do not prove that the candidate has knowledge or experience, it only proves that the candidate has academic experience.
The test that I give to all my candidates is simple and direct to the point. It expects that the candidate knows engineering and coding and test those aspects with non-standard questions and problems that could have more than one solution where you could verify how the candidate responded the question and follow up with him/her about it.
This is my opinion off course but it does seem foolish applying tests like this.
Nice article.
I would mention about application security.
Let's start with OWASP: blog.sucuri.net/2018/10/owasp-top-...
Thanks! This is perfect!
I had some trouble figuring out what I should tackle first. The warm up and pre-study problems are a great idea.
After the warm-ups I think I would personally just hit a few of each subject at a time and then check them off the checklist.
The "warm ups" made me sit back down and reevaluate my career entirely. Is it too late to change my major to Underwater Basket-Weaving?
Awesome List. It really helps. Thank you so much for contributing to the community.
I love being part of the community!
Wow, that ‘12 minute read’ is really misleading here lol
Like, 12 minute read...100 hours of practice
Congratulation, you just won the internet 👏👏
I don't know if that is true! But I hope this helps :)
Indeed, Developers are lazy by nature. They may know/be aware about these topics in general but having all of them curated this way is a great help. It may also saves time when refer it for new comer to the field in your circle. So thanks man ^
Having checklists :) just help make things easy!
Thanks a lot!
You're welcome!
I am not a guy from computer science, will learning from this guide change the way I approach programming problems? Just asking as an outsider.
Yes. Mastering the list above might even turn you into a guy from computer science. At minimum, it will change the way you approach programming problems to the computer science way.
In many ways you are very correct! If you can really get a handle on all this stuff. You could land a job as a software engineer.
I'm still rather new myself, but I think so! Especially with regards to performance (think 100k users or records), and maintainability (how organized your entire code base is e.g. 200 java files)
You might also like: How to Master Python Fast and easy: A complete simple Tutorial based on the officiel documentation
thanks dude
You're welcome!
Awesome. Circulated the URL to all my colleagues
Thank you!