MCPcopy
hub / github.com/hoanhan101/algo

github.com/hoanhan101/algo @main sqlite

repository ↗ · DeepWiki ↗
421 symbols 1,456 edges 132 files 113 documented · 27%
README

116+ Coding Interview Problems with Detailed Solutions

Build Status Go Report Card hackernews r/golang

The Ultimate Go Study Guide eBook version →

Join my mailing list to get the latest updates here →

Motivation

I am building a database of most frequently appeared coding interview problems that I think are the most valuable and productive to spend time on. For each one, I am including my thoughts of process on how to approach and solve it, adding well-documented solutions with test cases, time and space complexity analysis. My goal is to help you get good algorithms and data structures so that you can prepare better for your next coding interviews.

These resources that I am looking at are: - Interview Cake - LeetCode - Cracking the Coding Interviews - Grokking the Coding Interview: Patterns for Coding Questions - Elements of Programming Interviews

If you’re interested in getting updates for this, feel free to join my mailing list here →

Table of Contents

Developing

Count the number of questions:

make count

Clean up, lint source files, run tests and be ready for a push:

make ready

Test only:

make test

Test and report:

make cover

Test verbose:

make test-verbose

Lint:

make lint

Clean up:

make clean

For more information:

make help

Stargazers over time

Stargazers over time

Core symbols most depended-on inside this repo

Equal
called by 256
common/utils.go
AddNext
called by 94
common/listnode.go
NewListNode
called by 44
common/listnode.go
Max
called by 27
common/utils.go
Push
called by 27
common/queue.go
Size
called by 19
common/queue.go
Slice
called by 18
common/list.go
Swap
called by 16
common/utils.go

Shape

Function 333
Method 65
Struct 21
TypeAlias 2

Languages

Go100%

Modules by API surface

common/utils.go17 symbols
common/list.go16 symbols
ctci/bit_operation_test.go12 symbols
common/utils_test.go12 symbols
common/minheap.go12 symbols
common/maxheap.go12 symbols
lab/lru_test.go10 symbols
common/queue.go9 symbols
common/stack.go8 symbols
leetcode/valid_parentheses_test.go7 symbols
leetcode/min_stack_test.go6 symbols
lab/binary_tree_traverse_test.go6 symbols

For agents

$ claude mcp add algo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact