Leanpub Header

Skip to main content

Topics

Coding Interviews

From a method for the 45-minute coding round and the algorithms it draws on to question banks for each platform and the system design interview, technical interviewing as told through the free samples of Leanpub books.

Created from the free samples of 15 Leanpub books and the descriptions and tables of contents of 17 more books and courses, with every source cited.

A coding interview is the part of hiring a software engineer in which the candidate solves a programming problem in front of an interviewer, against a clock that commonly runs for 45 minutes.[1] It remains the central part of the hiring process, and for most companies the main filter for candidates.[16] Other technical rounds stand beside it: questions on a particular language or platform, and a system design round, now part of most software interviews, in which the candidate explains how a large service would be built.[12]

Preparing for these rounds has become a discipline of its own, with practice sites that hold thousands of problems, curated lists of the ones most often asked, and catalogues of the patterns behind them. The books divide accordingly into methods for the session itself, courses in algorithms and data structures, banks of questions for one platform, and guides to system design. A point several of them make is that knowing the material is not the same as performing with it: a candidate who has practised for weeks can still go blank when the problem is revealed.[1]

This article describes what the interview measures, a method for the coding round, the algorithmic material, practice, platform interviews, system design and the expectations at senior levels. Its sources are the free samples of 15 Leanpub books and the public descriptions and tables of contents of 17 more books and courses, most of them published between 2023 and 2026.

Where to start

A candidate who knows a programming language but not yet the algorithms can begin with TLDR: Data Structures and Algorithms (2026), which is written for readers who know Python and introduces each idea with an analogy before the code, or with The Algorithm Arcade (2026), which teaches the same material by building games.[4] [5] Algorithms and Data Structures in C#: Complete Tutorial (2019) is a course on data structures and algorithms in C#.[17]

A candidate who has practised problems but stalls in the session itself is the reader of Nail A Coding Interview: Six-Step Mental Framework (2023), which assumes computer science fundamentals and coding experience but no previous interviews.[1] How to Solve Algorithm Problems gives a similar step-by-step routine with worked problems in Python, and A Guide to grinding Leetcode (2022) is a few pages of advice for people who start on a practice site and lose heart early.[2] [3]

For one platform there are question banks. Ace The Coding Interview: Essential .NET Interview Questions (2020) addresses people not yet confident about a first technical interview for a .NET position, Manifest Android Interview (2026) is meant for Android developers from junior to senior, and The Ultimate iOS Developer Interview Handbook (2026 Edition) (2026) covers iOS at every level, with Senior iOS Interview: The Complete Guide (2026 Edition) (2026) for experienced developers.[6] [22] [10] [9] For system design, System Design (2024) starts from the basics of networking, and Java Systems Design Interview Challenger (2024) explains how the interview works before its concepts.[11] [26]

What the interview measures

The books written by interviewers agree that a correct answer is only part of what is judged. The author of Nail A Coding Interview: Six-Step Mental Framework, after interviewing hundreds of candidates, observed that the successful ones wrote in different styles and languages but seemed to follow the same mental framework for solving a problem in limited time.[1] How to Solve Algorithm Problems lists eight factors on which a candidate is assessed: understanding of algorithms and data structures, problem-solving skill, attention to detail, efficient code, the analysis of time complexity, modular code, debugging and communication.[2]

Ace The Coding Interview: Essential .NET Interview Questions adds the interviewer's view of character. Its three pieces of advice are to say that one does not know an answer and then to reason aloud towards one, in preference to inventing something; to avoid boasting, since a gap in skill is easier to close than a habit of arrogance; and to remember that the company asked for the meeting because it saw something it needs.[6] The same book describes how an interview is usually phased. Some companies test a candidate's attitude before any technical question is asked, and a company with many applicants may first set a test or a small project to do at home, in which it looks at how the code is written as well as at whether the problem was solved.[6]

Javascript Technical Interview Questions (2014) came out of its author's experience on the other side of the table. Candidates for a JavaScript position could not answer questions drawn from the first chapters of a book the author was writing about the language's pitfalls, and the conclusion drawn was that a technical interview goes smoothly only with real command of the language.[7]

A method for the coding round

Nail A Coding Interview: Six-Step Mental Framework sets out six steps: write down the problem statement, clarify the problem space, write down test cases, describe the algorithm with its complexity, write the code, and test the code against the cases.[1] Its worked examples show how much happens before any code. For a problem about paths through a matrix, the candidate asks what happens when neighbouring values are equal, whether cells can be empty, whether the matrix fits in memory and whether time or space matters more, and then lists an ordinary case, empty inputs, a matrix of identical values and an irregular one.[1] The algorithm is stated in words, with its time and space complexity, and only then typed; afterwards the first version is improved by removing a list it did not need.[1] Another example, listing every subset of a set, is recognised from its test cases as a case for recursion with backtracking, and the analysis states the cost plainly: the time grows exponentially with the size of the set, since each element is either in a subset or not.[1]

How to Solve Algorithm Problems arrives at nearly the same routine from the candidate's side. Understand the problem; restate it as a single question of input and output; read it again, because a detail such as an array being sorted can change the answer entirely; and bring three examples, an empty input, a typical one and a corner case.[2] Then write a quick solution that merely works, and analyse its cost in time and space, partly to show the interviewer that the cost is understood and partly to see what to improve. Optimising that first solution is, in the book's words, the step that separates a beginner from an experienced candidate.[2] A Guide to grinding Leetcode makes the same point from practice: a solution that works without being the best is still a success, and a brute-force answer is the least an interviewer expects.[3]

Algorithms and data structures

The problems draw on a known body of material. TLDR: Data Structures and Algorithms introduces binary search through a guessing game: looking for a number between 1 and 1,000 by trying each in turn is a linear search, and the game changes once each guess is answered with higher or lower. The chapter then shows why halving is the best choice, implements the search in Python and applies it to three patterns of problem, the classic search, the search for a boundary and the search over possible answers.[4]

The Algorithm Arcade makes the cost of a poor choice visible. In its first chapter a snake game stores the snake's body in a plain list, so that every tick of the clock scans the whole list for a collision and shifts every element to add a new head; with a snake 300 tiles long the game stutters. Replacing the list with a double-ended queue and a hash set makes each move take constant time, and the chapter ties the structure to numbered practice problems.[5]

Other books take one family of problems each. Surviving the C++ Coding Interview (2023) is organised by category, linked lists, traversal by depth-first and breadth-first search with backtracking, and trees, each with canonical problems, hints and solutions in C++.[16] A series by one author treats bit manipulation in Ace the technical interview: Bits Edition (2023), dynamic programming in Ace the technical interview: Dynamic Programming (2024), whose 28 problems are grouped by pattern, and graphs in Ace the technical interview: Graph algorithms, from depth-first search to shortest paths, spanning trees and maximum flow.[18] [19] [20] How to Solve Algorithm Problems studies one family of problems closely, that of finding two, three or any number of values in a list that add up to a target, because it is among the questions most often asked: it contains several of the solution patterns found elsewhere and lets an interviewer extend the question from one version to the next. The book singles out three techniques as the most useful, two pointers and the two graph searches, and Mobile Coding Interviews Using Kotlin/Swift (2026) teaches some twenty patterns with templates in both Swift and Kotlin, on the argument that recognising a pattern serves better than memorising hundreds of problems.[2] [21]

Practice

A Guide to grinding Leetcode is about how to practise on the best-known problem site. Its first advice is to follow a list. Problems met at random are either dull or discouraging, and an easy label can hide a solution that is short but hard to find without having solved a simpler version first, so the guide recommends a well-known list of 75 interview problems ordered by real difficulty, and after it a catalogue arranged by pattern.[3]

The second is to resist the solution. Looking it up after a few minutes teaches little; the guide advises trying every inefficient approach first, and, if an hour passes without progress, concluding that the technique is unfamiliar and moving to related problems instead of reading the answer.[3] An interview question does not say which data structure it needs, and recognising that comes only from practice.[3] The remaining advice is about persistence. A little every day does more than a burst followed by months away; a hard problem can usually be broken into smaller ones or converted into a standard one; and a problem that defeats every effort is something still to be learned, not a verdict on the learner.[3]

The author of TLDR: Data Structures and Algorithms describes starting on the same site and feeling lost between two kinds of book, the academic one in which intuition is buried under derivations and the simplified one that leaves a reader unable to implement anything.[4]

Language and platform interviews

Many interviews test knowledge of the tools of the job, and the books for them are banks of questions. Ace The Coding Interview: Essential .NET Interview Questions has over 170 questions for full-stack .NET developers, which its author asked or was asked in interviews.[6] Crush The Go Coding Interview (2026) numbers more than a thousand for Go, from the zero value of a map to concurrency and system design, and Coding Interview Questions and Answers (2026) collects 240 on data structures, algorithms, Java, databases and C.[14] [15]

Javascript Technical Interview Questions takes the behaviour of one language as its subject: why comparing the text "true" with the boolean value gives false, what happens when variables are hoisted, why numbers behave oddly. Its position is that JavaScript has no quirks once the language is understood.[7] It was written against the language standard of its day and has not been revised since 2014.

Mobile development has the fullest shelf. Manifest Android Interview frames Android and its current user-interface toolkit as questions with step-by-step explanations, and its second edition shifted coverage from the older view system to the newer one; Manifest Android Interview Course (2026) is the course form, with over 370 questions.[22] [23] The Ultimate iOS Developer Interview Handbook (2026 Edition) has 620 questions in 11 sections, from Objective-C through Swift to system design and leadership, with a four-week study plan.[10] For the web, The Real-World Frontend Interview Handbook (2026) spans the browser languages, two user-interface frameworks, algorithms and system design, and Ultimate Playwright Coding Interview Guide: 100 Coding Challenges (2026) prepares testers moving into automation for interviews on one testing tool.[24] [25]

System design interviews

System design is the defining of the architecture, interfaces and data of a system that meets stated requirements, and it matters because its decisions are among the earliest made and the hardest to correct later.[11] In the interview a candidate may be asked how a browser works, how to make a system highly available, or how to design a rate limiter or a clone of a photo-sharing service.[12] System Design is a survey of the building blocks, from addresses and network layers upward, with a chapter on the interview and worked designs.[11] System Design (2024) offers five quizzes of twenty multiple-choice questions on networking, databases, cloud computing, data structures and design problems.[12] Java Systems Design Interview Challenger advises learning concepts instead of tools, and System Design Guide for Software Professionals (2024) moves from the basics of distributed systems to full designs such as a link shortener and a proximity service.[26] [27]

As in the coding round, the books offer a routine for the answer. Senior iOS Interview: The Complete Guide (2026 Edition) gives five steps to use for every design question: clarify requirements and scale, draw the high-level structure, go deep on the two or three hard parts, state the trade-offs and what would change at ten times the scale, and finish with observability and rollout.[9] Cracking the Mobile System Design Interview (2026) has six steps, the first of them five to seven minutes of clarifying requirements, and eight case studies under the constraints particular to phones.[28]

Front-end design has a framework of its own, a five-part checklist of collecting information, component structure, data modelling, interface design and optimisation, which Frontend System Design Essentials (2026) presents as a way to organise one's thoughts under pressure and then applies to one application throughout.[13] The same author's Frontend System Design Interviews (2026) starts from the observation that the hard part is seldom knowing more technologies; it is knowing where to start, which questions matter and how deep to go.[29] The Frontend System Design Interview Playbook (2026) lists 60 questions, each with the trade-offs an interviewer listens for and the follow-up questions to expect.[30]

Two books carry the genre to other fields. Cracking the System Design Interview for Data Engineers. (2026) argues that general design books, built around the problems of back-end engineers, do not prepare a data engineer asked to design a data platform, and gives a chapter to each kind of system.[31] AI-Assisted System Design (2026) makes the corresponding case for systems built on language models, whose non-determinism, cost per token and latency the older books do not cover.[32]

Senior and staff interviews

At senior levels the questions turn from whether a candidate can build something to how the candidate reasons about it. The Kubernetes Platform Engineer Interview Guide (2026), written for senior and staff roles in platform engineering, describes the shape of a strong answer: clarify the requirement, state the mental model, describe the simplest correct design, identify how it fails, explain how it would be observed and tested, and say how it changes at scale.[8] Asked to design a component, a candidate should begin with the property it must preserve and not with a list of libraries.[8]

The same guide defines the step up. A senior engineer can implement the component; a staff engineer can explain whether it should exist, what it should own, how it will fail and how teams will operate it. Its principle for moments of doubt is to be explicit about constraints instead of pretending to a certainty the system does not offer, and it recommends rehearsing each answer aloud in two to five minutes. For every question it suggests a private checklist: what property is being protected, what can fail, who owns each part, what happens during a restart, and what measurement would show that the system is healthy.[8]

Senior iOS Interview: The Complete Guide (2026 Edition) is built for the same level, with 235 questions framed as scenarios and sections on leadership beside the technical ones.[9] Cracking the System Design Interview for Data Engineers. gives its first chapter to how the session is evaluated, the mistakes senior candidates make and the signals that distinguish senior from staff.[31]

Questions about Coding Interviews

How should I approach a problem in a coding interview?

Nail A Coding Interview: Six-Step Mental Framework gives six steps: write down the problem, clarify it, write test cases, describe the algorithm and its complexity, code it, and test it against the cases.[1] Much of the work comes before any code, in the clarifying questions and the choice of cases.[1]

Should I start with a brute-force solution?

Yes. How to Solve Algorithm Problems advises writing a quick solution that merely works, analysing its cost and then optimising it, and calls the optimising step the difference between a beginner and an experienced candidate.[2] A brute-force answer is the least an interviewer expects.[3]

How should I practise for coding interviews?

Follow a list of problems ordered by real difficulty, then practise by pattern.[3] Avoid reading a solution after only a few minutes, and practise a little every day in preference to a burst followed by months away.[3]

What is a system design interview?

It is the round in which a candidate explains how a system would be built, for example a rate limiter or a clone of a well-known service.[12] One routine for the answer is to clarify requirements and scale, draw the high-level structure, go deep on the hard parts, state the trade-offs, and finish with observability and rollout.[9]

What do interviewers look for besides a correct answer?

How to Solve Algorithm Problems lists attention to detail, analysis of complexity, modular code, debugging and communication beside knowledge of algorithms.[2] Ace The Coding Interview: Essential .NET Interview Questions adds honesty: saying that one does not know and then reasoning aloud is better than inventing an answer.[6]

Which coding interview book should I start with?

Readers who know Python but not algorithms can start with TLDR: Data Structures and Algorithms (2026).[4] Those who have practised problems and stall in the interview itself can take Nail A Coding Interview: Six-Step Mental Framework (2023), which assumes computer science fundamentals.[1]

Sources

Every source is a Leanpub book or course. The note after each says which part of it was read; where no sample was available, only the public description and table of contents were used.

  1. 1.
    Nail A Coding Interview: Six-Step Mental Framework, Grace Huang Free sample: the introduction with the six steps, and two of the worked example problems. 2023. Free sample: PDF · EPUB
  2. 2.
    How to Solve Algorithm Problems, WALEED KHAMIES: Make Coding Interview Preparation Less Painful Free sample: the table of contents and the chapter on the steps for solving a problem; the chapter on assessment factors appears as headings only. Free sample: PDF · EPUB
  3. 3.
    A Guide to grinding Leetcode, Abhishek Choudhary: Flex in interviews Free sample: the seven pieces of advice; the rest is a list of the author's solution files. 2022. Free sample: PDF
  4. 4.
    TLDR: Data Structures and Algorithms, John G: From Knowing Python to Cracking Leetcode Patterns Free sample: the chapter on binary search and the contents of the chapter on recursion. 2026. Free sample: PDF
  5. 5.
    The Algorithm Arcade, ZA Publishers: Build 30 Pygame Games, Master 150 Algorithms & Ace Coding Interviews Free sample: the table of contents and the start of chapter 1, on the snake game. 2026. Free sample: PDF
  6. 6.
    Ace The Coding Interview: Essential .NET Interview Questions, Ion Cosmin Grigore: The ultimate guide to mastering the tech interview: programming questions and solutions. Get more interviews & job offers Free sample: the opening sections on the guide's purpose, three tips and what happens before an interview; no technical questions. 2020. Free sample: PDF
  7. 7.
    Javascript Technical Interview Questions, Xuanyi Chew: Prepare Yourself For That Dream Job Free sample: the introduction and the first chapter, on immediately invoked functions. 2014. Free sample: PDF · EPUB
  8. 8.
    The Kubernetes Platform Engineer Interview Guide, Luca Sepe: Advanced Controllers, Syncers, Multi-Tenancy, API Scalability, and Staff-Level System Design Free sample: selected excerpts, with the shape of a strong answer, the study plan, what staff level means and one question on controllers. 2026. Free sample: PDF
  9. 9.
    Senior iOS Interview: The Complete Guide (2026 Edition), Puneet Shah: 235 Q&A on Architecture, Swift 6, SwiftUI & System Design Free sample: the front matter, the contents of the first sections and the system design answer framework of question 76. 2026. Free sample: PDF
  10. 10.
    The Ultimate iOS Developer Interview Handbook (2026 Edition), Puneet Shah: 620 Q&A: Swift 6, SwiftUI, Objective-C & System Design Free sample: the front matter describing the book's 620 questions and study plan. 2026. Free sample: PDF
  11. 11.
    System Design, Karan Pratap Singh: Learn how to design systems at scale and prepare for system design interviews Free sample: what system design is, and the opening chapters on network addresses and layers. 2024. Free sample: PDF
  12. 12.
    System Design, Cristian Scutaru: 100 Job Interview Questions Free sample: the introduction and the start of the networking quiz. 2024. Free sample: PDF
  13. 13.
    Frontend System Design Essentials, Juntao Qiu: A practical guide to designing scalable, reliable, and maintainable frontend systems. Free sample: the book's structure, with its five-part framework, and the start of chapter 1. 2026. Free sample: PDF · EPUB
  14. 14.
    Crush The Go Coding Interview, MZ Ahmad: 1000+ Expert-Curated Questions to Master Real-World Golang Programming Free sample: a list of the numbered problems, without answers. 2026. Free sample: EPUB
  15. 15.
    Coding Interview Questions and Answers, Chinmoy Mukherjee Free sample: the list of questions, without answers. 2026. Free sample: PDF
  16. 16.
    Surviving the C++ Coding Interview, Šimon Tóth No sample: from the description and table of contents. 2023.
  17. 17.
    Algorithms and Data Structures in C#: Complete TutorialCourse, EngineerSpock: Learn data structures and algorithms in C# from A to Z. Pass coding interview. Learn unit testing and TDD in addition. No sample: from the description and table of contents. 2019.
  18. 18.
    Ace the technical interview: Bits EditionCourse, Imaculate Mosha No sample: from the description and table of contents. 2023.
  19. 19.
    Ace the technical interview: Dynamic ProgrammingCourse, Imaculate Mosha No sample: from the table of contents. 2024.
  20. 20.
    Ace the technical interview: Graph algorithms, Imaculate Mosha No sample: from the description and table of contents.
  21. 21.
    Mobile Coding Interviews Using Kotlin/Swift, Mahmoud Ramadan: Pattern-Based Problem Solving in Swift & Kotlin No sample: from the description and table of contents. 2026.
  22. 22.
    Manifest Android Interview, Jaewoong: The ultimate guide to cracking Android technical interviews No sample: from the description and table of contents. 2026.
  23. 23.
    Manifest Android Interview CourseCourse, Jaewoong: The ultimate guide to cracking Android & Compose technical interviews. No sample: from the description. 2026.
  24. 24.
    The Real-World Frontend Interview Handbook, KARVENTHAN: React Native • React • JavaScript / TypeScript • Node.js • DSA • System Design No sample: from the description. 2026.
  25. 25.
    Ultimate Playwright Coding Interview Guide: 100 Coding Challenges, Priyanka Bhopale: 100 Coding Challenges, API Testing, Real coding Interview Questions & Hands-On Automation Practice Using Playwright No sample: from the description. 2026.
  26. 26.
    Java Systems Design Interview Challenger, Rafael Chinelato del Nero: Pass Java System Design interviews by understanding the fundamentals of a cloud system's components. Don't try to learn all the tools, focus on concepts instead. No sample: from the description and table of contents. 2024.
  27. 27.
    System Design Guide for Software Professionals, Packt Publishing Ltd: Build scalable solutions – from fundamental concepts to cracking top tech company interviews No sample: from the description and table of contents. 2024.
  28. 28.
    Cracking the Mobile System Design Interview, Mahmoud Ramadan: A Practical Guide to Android & iOS Architecture with Production-Ready Code No sample: from the description and table of contents. 2026.
  29. 29.
    Frontend System Design Interviews, Juntao Qiu: A Practical Guide to Frontend System Design Through Frameworks and Real-World Case Studies No sample: from the description and table of contents. 2026.
  30. 30.
    The Frontend System Design Interview Playbook, Nadeem Ur-Rehman: 60 real frontend system design interview questions with architect-level answer frameworks. No sample: from the description. 2026.
  31. 31.
    Cracking the System Design Interview for Data Engineers., ALEXEY BANAEV No sample: from the description and table of contents. 2026.
  32. 32.
    AI-Assisted System Design, CAIO INCAU: AI-Assisted System Design No sample: from the description and table of contents. 2026.

Further reading

Other books in the library on the same ground, not cited above.

This is an article created from the free samples of 15 Leanpub books and the descriptions and tables of contents of 17 more books and courses. We're building these articles to provide you, the Leanpub reader, with a good jumping-off point to discover more Leanpub books that are interesting and relevant to you. We never use material which is paid-only when building these articles: we only use material which is already free on Leanpub. However, Leanpub authors can opt out from inclusion in articles from their book settings page.

Updated November 2026.

All topics