MCPcopy Index your code
hub / github.com/ByteByteGoHq/coding-interview-patterns

github.com/ByteByteGoHq/coding-interview-patterns @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,267 symbols 2,101 edges 655 files 23 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Coding Interview Patterns - All Solutions

Welcome to the Coding Interview Patterns GitHub repository! This repository contains all the coding problem solutions presented in the book Coding Interview Patterns.

Access all Python solutions here: python3

🌐 Access the Online Coding Platform

The only way to truly excel in coding interviews is with consistent practice. We highly recommend visiting our website to practice all 101 problems. Engaging with these problems on our platform is going to reinforce your learning, and better prepare you for high‐stakes coding interviews:\ https://bit.ly/run-code

🌟 Contributing to the Repo

We welcome contributions to the repository! Of course, your contributions will be credited. If you’d like to add solutions in a language of your choice, or amend an existing solution in any language, please read the instructions provided in CONTRIBUTING.md.

Huge thanks and appreciation to the following people who have helped build this repository from the ground up:

  • @Destiny-02: Reviews PRs, manages contributions, and ensures code quality and consistency.
  • @ongshunping: Implemented C++ solutions for all chapters.
  • @marttp: Implemented Kotlin solutions for all chapters.

📙 About the Book

Coding interviews are tough, and they're only getting tougher, typically demanding months of preparation. What we all want is a way to master algorithms and data structures without needing to spend countless hours sifting through endless, unfocussed resources. Introducing "Coding Interview Patterns," your complete guide to mastering the key patterns needed to ace your next coding interview.

What’s inside?

  • An insider’s perspective on what interviewers are truly looking for and why.
  • 101 real coding interview problems with detailed solutions.
  • Intuitive explanations that guide you through each problem as if you were solving it in a live interview.
  • 1000+ diagrams to illustrate key concepts and patterns.

Table of Contents

Chapter 1: Two Pointers\ Chapter 2: Hash Maps and Sets\ Chapter 3: Linked Lists\ Chapter 4: Fast and Slow Pointers\ Chapter 5: Sliding Windows\ Chapter 6: Binary Search\ Chapter 7: Stacks\ Chapter 8: Heaps\ Chapter 9: Intervals\ Chapter 10: Prefix Sums\ Chapter 11: Trees\ Chapter 12: Tries\ Chapter 13: Graphs\ Chapter 14: Backtracking\ Chapter 15: Dynamic Programming\ Chapter 16: Greedy\ Chapter 17: Sort and Search\ Chapter 18: Bit Manipulation\ Chapter 19: Math and Geometry

Now available on Amazon ➞ https://geni.us/q7svoz


👥 About the Authors

Alex Xu\ Alex Xu is a software engineer and author. His book 'System Design Interview - An Insider's Guide' is an Amazon bestseller, which has been translated into six languages. He has worked at Twitter, Apple, and Zynga.

Shaun Gunawardane\ Shaun Gunawardane is a competitive programmer with experience at Google. As a founder of a not-for-profit coding program, he has helped hundreds of students secure software engineering positions at leading companies like Google, Amazon, and Jane Street.

📞 Contact

If you have comments or questions about this repository, feel free to contact us at hi@bytebytego.com.

Happy coding and good luck with your interviews! 🚀

ByteByteGo Logo

Core symbols most depended-on inside this repo

Shape

Function 587
Method 427
Class 253

Languages

Java28%
C++18%
Python18%
Kotlin17%
C#13%
TypeScript4%

Modules by API surface

typescript/Linked Lists/lru_cache.ts10 symbols
python3/Graphs/merging_communities.py9 symbols
java/Graphs/MergingCommunities.java9 symbols
cpp/Tries/insert_and_search_words_with_wildcards.cpp9 symbols
cpp/Tries/design_a_trie.cpp9 symbols
cpp/Linked Lists/lru_cache.cpp9 symbols
cpp/Graphs/merging_communities.cpp9 symbols
python3/Linked Lists/lru_cache.py8 symbols
java/Linked Lists/LRUCache.java8 symbols
csharp/Linked Lists/LRUCache.cs8 symbols
python3/Tries/insert_and_search_words_with_wildcards.py7 symbols
python3/Tries/design_a_trie.py7 symbols

For agents

$ claude mcp add coding-interview-patterns \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page