Tech Interview RoomStudy guides

Learning path · 52 lessons · 11 topics

⌨️ Coding Patterns (DSA) interview preparation

The patterns behind most coding rounds, solved in Java with complexity analysis.

Coding rounds reuse a small number of patterns. Recognising the pattern is most of the work: two pointers, sliding window, binary search, BFS/DFS, dynamic programming and heaps cover the majority of questions.

Work through the patterns in order. For each problem, try it yourself first, then read the brute-force and optimal solutions and their time and space complexity.

What you will learn

  • Arrays, hashing, two pointers and sliding window
  • Stacks, queues, binary search and linked lists
  • Trees, graphs, heaps and intervals
  • Dynamic programming and string problems

Topics

Roadmap: beginner to advanced

  1. 1

    Beginner Beginner stage

    Foundations: the concepts every interviewer expects you to explain clearly.

    Arrays & Hashing

    Two Pointers

    Sliding Window

    Binary Search

    Linked List

    Dynamic Programming

    Strings

  2. 2

    Intermediate Intermediate stage

    Working knowledge: how things behave in real projects and the trade-offs you make.

    Arrays & Hashing

    Two Pointers

    Sliding Window

    Stack & Queue

    Binary Search

    Linked List

    Trees

    Graphs

    Heaps & Intervals

    Dynamic Programming

    Strings

  3. 3

    Advanced Advanced stage

    Senior depth: internals, scale, failure modes and design decisions.

    Two Pointers

    Sliding Window

    Stack & Queue

    Binary Search

    Linked List

    Graphs

    Heaps & Intervals

    Dynamic Programming