Algorithms, low level and high level design, for interviews and for work

DSA, LLD & System Design. Worked out.

Study for your coding round, your LLD round and your system design round. Each lesson takes about an hour, so you can fit one into an evening after work.

Start the DSA roadmapExplore LLDExplore system design

Free to read, no signup required.

System design, argued from these companies' papers and postmortems.

Sources cited across the course include PostgreSQL, Apache Kafka, MySQL, Notion, Figma, Pinterest, Google, Meta, Netflix, AWS, Apple, OpenAI, Anthropic, Stripe, Microsoft, Cloudflare, Discord, X, Slack, GitHub.

DSA, taught pattern by pattern: 99 of them.

The DSA roadmap teaches these patterns: Thinking like a programmer, Data types, Conditions, Loops, Standard library, Time and space complexity, Loops through pattern printing, Working with digits and divisors, Recursion basics, Counting with arrays and maps, Array basics, Hash map lookups, Counting and voting, One pass with running state, Prefix sums, Difference arrays, Walking a matrix, Number tricks, Primes and the sieve, Fast power and modular arithmetic, Pascal's triangle and combinations, Bit basics, XOR tricks, Counting and shifting bits, Bitmasks, String basics, Parentheses and nesting, Parsing and conversion, Counting over substrings, Simple sorts, Divide-and-conquer sorts, Counting during merge sort, Pointers from both ends, Rearranging in place, Merging sorted arrays, Longest or shortest window, Fixed-size window, Counting windows, Lower and upper bounds, Searching a sorted array, Searching the answer, Searching a matrix, Partition search, Singly linked list basics, Doubly linked lists, Fast and slow pointers, Reversing and rewiring, A list and a map together, Building stacks and queues, Matching and cancelling, Infix, prefix and postfix, Monotonic stack, Monotonic queue, Pick or skip, Recursion on a stack, Generating every choice, Searching with constraints, Traversals, Depth first: return a value up, Breadth first: level by level, Building and serializing, BST basics, Using the ordering, Building a heap, Top K, Simulating with a heap, Two heaps, Merging k sorted lists, Prefix trees, Tries over bits, The best choice now, Merging and scheduling, Graph basics, Grids as graphs, Fewest steps with BFS, Traversing a graph, Cycle detection, Topological sort, Union-find, Weighted shortest paths, 0-1 BFS, Minimum spanning trees, Special edges and paths, Take it or skip it, Palindromes, Increasing subsequences, Buying and selling with states, Paths in a grid, Knapsack, Two strings, Splitting a range, Bitmask DP, Digit DP, Pattern matching, Choosing a structure, Sparse table, Fenwick tree, Segment tree, Lazy propagation.

Three courses

How to use it

For DSA, start at the top of the roadmap and go in order. Each pattern begins with how to spot it and a short lesson, then lists problems from easy to hard. If your interview is only a few weeks away, use the 147 DSA sheet instead. At three problems a day, it takes seven weeks.

For LLD, read the patterns first. Each one is built twice, the obvious way and then with the pattern, so you see what it fixes and what it costs. Then take the full designs one per evening. Each goes the way a 45 minute interview goes, and every snippet opens the whole file.

For system design, read one problem breakdown per evening. The top of each breakdown links the core concepts it depends on, so you can read those first if you need to. You do not have to memorise any numbers. Every estimate is worked out step by step, so you can do the same maths in your interview.

Article

Send feedback

Thank you for helping. We read every report and fix what is wrong.

How do you feel about oneby7?

Sign in to oneby7

Keep your progress, your streak and your code, on any device.

New here? This creates your account too.