Coding Interview Cheatsheet

Gorav Singal

September 05, 2018

TL;DR

Quick reference of essential coding interview topics: arrays, strings, trees, graphs, sorting, searching, dynamic programming, and Big-O notation.

Coding Interview Cheatsheet

Absolute Must Have

Below are must have topics that you must know:
Algorithms Data Structures Concepts
Breadth First Search (BFS) Linked Lists Bit Manipulation
Depth First Search (DFS) Binary Trees Single Design Pattern
Binary Search Tries Factory Design pattern
Merge Sort Stacks Memory (Heap, Stack)
Quick Sort Queues Recursion
Trees Insert, find, delete etc ArrayList, Vectors Complexity, Big-O Notation
Hash Table

Table of Power of 2

This table will be helpful in remembering the units, specially in scalability interviews.
Power off 2 Value Value Name MB, GB,...
6 64
7 128
8 256
10 1024 One Thousand 1 KB
16 65,536 64 KB
20 1048,536 1 million 1 MB
30 1073,741,824 1 billion 1 GB
32 4294,967,296 4 GB
40 1099,511,627,776 1 trillion 1 TB
Share

Related Posts

What FAANG companies expect in their interview from candidates

What FAANG companies expect in their interview from candidates

Its every software engineer’s dream to work with the big FAANG companies…

Magical usage of Bitwise operators - Get optimized solutions for many arithmatic problems

Magical usage of Bitwise operators - Get optimized solutions for many arithmatic problems

Introduction I will list some of the interesting usage of bitwise operators…

How to prepare for your next Coding Interview

How to prepare for your next Coding Interview

Here are some tips while preparing for your coding interviews. 1. Do study or…

How to nail your Coding Interview

How to nail your Coding Interview

Here are some tips while giving your coding interviews. 1. Never try to jump to…

Coding Interview - Useful Terms Cheatsheet

Coding Interview - Useful Terms Cheatsheet

Big-O notation In simpler terms, its kind of a unit to measure how efficient an…

List of Sorting Algorithms

List of Sorting Algorithms

This topic is one of the most common studied. When somebody started preparation…

Latest Posts

AI Video Generation in 2025 — Models, Costs, and How to Build a Cost-Effective Pipeline

AI Video Generation in 2025 — Models, Costs, and How to Build a Cost-Effective Pipeline

AI video generation went from “cool demo” to “usable in production” in 2024-202…

AI Models in 2025 — Cost, Capabilities, and Which One to Use

AI Models in 2025 — Cost, Capabilities, and Which One to Use

Choosing the right AI model is one of the most impactful decisions you’ll make…

AI Image Generation in 2025 — Models, Costs, and How to Optimize Spend

AI Image Generation in 2025 — Models, Costs, and How to Optimize Spend

Generating one image with AI costs between $0.002 and $0.12. That might sound…

AI Coding Assistants in 2025 — Every Tool Compared, and Which One to Actually Use

AI Coding Assistants in 2025 — Every Tool Compared, and Which One to Actually Use

Two years ago, AI coding meant one thing: GitHub Copilot autocompleting your…

AI Agents Demystified — It's Just Automation With a Better Brain

AI Agents Demystified — It's Just Automation With a Better Brain

Let’s cut through the noise. If you read Twitter or LinkedIn, you’d think “AI…

Supply Chain Security — Protecting Your Software Pipeline

Supply Chain Security — Protecting Your Software Pipeline

In 2024, a single malicious contributor nearly compromised every Linux system on…