MCPcopy
hub / github.com/austingebauer/go-leetcode

github.com/austingebauer/go-leetcode @main sqlite

repository ↗ · DeepWiki ↗
572 symbols 1,234 edges 254 files 109 documented · 19%
README

go-leetcode

A collection of 100+ popular LeetCode problems that I've solved in Go.

Each directory includes a: - Description with link to LeetCode problem - Solution to the problem - Unit test

Note that each of these problems have passed their respective test cases on LeetCode. The unit tests included with each solution in this repo are not comprehensive. They serve as a quick way to drop in a test case, hook up the debugger, and step through the algorithms to build understanding.

Also note that some of my personal comments are in the solutions. I'll be working to clean up anything that is not insightful.

Problems

There are a variety of popular LeetCode problems solved in this repository. However, most of the problems solved are from a highly recommended, curated list of problems called Top 75 LeetCode Problems.

The Top 75 LeetCode Problems list is comprehensive, covering a decent breadth and depth for each category. Working through that list will certainly help build the core concepts, techniques, and intuition needed to solve these types of problems.

I've included a checklist that you can use to work through the list below:

Array


Binary


Dynamic Programming


Graph


Interval


Linked List


Matrix


String


Tree


Heap

Core symbols most depended-on inside this repo

Move
called by 44
design_tic_tac_toe_348/solution.go
Get
called by 27
lru_cache_146/solution.go
Put
called by 25
lru_cache_146/solution.go
NewNestedInteger
called by 12
flatten_nested_list_iterator_341/solution.go
AddNum
called by 8
find_median_from_data_stream_295/solution.go
FindMedian
called by 8
find_median_from_data_stream_295/solution.go
Constructor
called by 8
lru_cache_146/solution.go
waterCanFlow
called by 8
pacific_atlantic_water_flow_417/solution.go

Shape

Function 382
Struct 139
Method 48
TypeAlias 3

Languages

Go100%

Modules by API surface

find_median_from_data_stream_295/solution.go16 symbols
flatten_nested_list_iterator_341/solution.go15 symbols
top_k_frequent_elements_347/solution.go8 symbols
pacific_atlantic_water_flow_417/solution.go8 symbols
lru_cache_146/solution_test.go8 symbols
min_stack_155/solution.go7 symbols
lru_cache_146/solution.go7 symbols
implement_trie_208/solution.go7 symbols
design_tic_tac_toe_348/solution_test.go7 symbols
design_sql_2408/solution.go7 symbols
longest_increasing_subsequence_300/solution.go6 symbols
group_anagrams_49/solution.go6 symbols

Dependencies from manifests, versioned

github.com/davecgh/go-spewv1.1.0 · 1×
github.com/pmezard/go-difflibv1.0.0 · 1×
gopkg.in/yaml.v2v2.2.2 · 1×

For agents

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

⬇ download graph artifact