MCPcopy Index your code
hub / github.com/0xAX/go-algorithms

github.com/0xAX/go-algorithms @main sqlite

repository ↗ · DeepWiki ↗
98 symbols 179 edges 46 files 38 documented · 39%
README

go-algorithms

go-algorithms - implementation of different algorithms and data structures with golang.

Usage

  1. Clone https://github.com/0xAX/go-algorithms.git repo, it must be in your $GOPATH.

  2. Execute go build && go install in go-algorithms

  3. Execute go build bubble_sort.go and ./bubble_sort

Algorithms

Sorting

Searching

Collections

Numerical

Contribution

  • Fork go-algorithms;
  • Make changes;
  • Send pull request;
  • Thank you.

Author

@0xAX

Extension points exported contracts — how you extend this code

Sort (FuncType)
@todo remove return
sorting/sort.go
Comparable (FuncType)
(no doc)
binaryTree/binaryTree.go

Core symbols most depended-on inside this repo

Insert
called by 6
list/list.go
Push
called by 5
stack/stack.go
Enqueue
called by 5
queue/queue.go
New
called by 4
binaryTree/binaryTree.go
Insert
called by 4
binaryTree/binaryTree.go
factorial
called by 4
numerical/factorial.go
FastPow
called by 4
numerical/fast_pow.go
Min
called by 3
binaryTree/binaryTree.go

Shape

Function 73
Method 13
Struct 10
FuncType 2

Languages

Go100%

Modules by API surface

list/list.go11 symbols
sorting/treesort.go7 symbols
binaryTree/binaryTree.go7 symbols
stack/stack.go6 symbols
queue/queue.go5 symbols
searching/depthFirstSearch.go4 symbols
searching/breadthFirstSearch.go4 symbols
numerical/max_sub_array.go3 symbols
graph/shortest_distance_fw.go3 symbols
binaryTree/binaryTree_test.go3 symbols
sorting/sort_test.go2 symbols
sorting/radix_sort.go2 symbols

For agents

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

⬇ download graph artifact