MCPcopy
hub / github.com/yangshun/lago

github.com/yangshun/lago @main sqlite

repository ↗ · DeepWiki ↗
238 symbols 515 edges 67 files 113 documented · 47%
README

Lago

Lago logo

<em>Credits: Illustration by <a href="https://undraw.co/">unDraw</a></em>

💡 Practice implementing Data Structures and Algorithms in JavaScript for free on GreatFrontEnd 💡


Contents

Common Data Structures and Algorithms implementations in JavaScript.

Data Structures

Algorithms

Development

$ yarn install
$ yarn test --watch

Before pushing/submitting PR

$ yarn check-all

Extension points exported contracts — how you extend this code

AbstractNode (Interface)
(no doc) [3 implementers]
src/data-structures/Node.ts
SortingInputsParams (Interface)
(no doc)
test/utils/sortingInputs.ts
PriorityNode (Interface)
(no doc)
test/data-structures/PriorityQueue.test.ts
Graph (Interface)
(no doc)
src/algorithms/breadthFirstSearch.ts
Comparator (Interface)
(no doc)
src/data-structures/PriorityQueue.ts
ObjectWithValue (Interface)
(no doc)
test/data-structures/BloomFilter.test.ts
DirectedWeightedGraph (Interface)
(no doc)
src/algorithms/dijkstra.ts
TrieNode (Interface)
(no doc)
src/data-structures/Trie.ts

Core symbols most depended-on inside this repo

insert
called by 74
src/data-structures/Heap.ts
push
called by 74
src/data-structures/Stack.ts
get
called by 64
src/data-structures/List.ts
insert
called by 42
src/data-structures/BinarySearchTree.ts
enqueue
called by 37
src/data-structures/Queue.ts
nullthrows
called by 35
src/utils/nullthrows.ts
height
called by 28
src/data-structures/BinaryTree.ts
toArray
called by 27
src/data-structures/DoublyLinkedList.ts

Shape

Method 139
Function 45
Class 42
Interface 12

Languages

TypeScript100%

Modules by API surface

src/data-structures/PriorityQueue.ts18 symbols
src/data-structures/Trie.ts17 symbols
src/data-structures/Heap.ts17 symbols
src/data-structures/BinaryTree.ts15 symbols
src/data-structures/DoublyLinkedList.ts14 symbols
src/data-structures/Graph.ts12 symbols
src/data-structures/Counter.ts12 symbols
src/data-structures/BinarySearchTree.ts12 symbols
src/data-structures/Node.ts10 symbols
src/data-structures/Queue.ts9 symbols
src/utils/langUtils.ts8 symbols
src/data-structures/Stack.ts8 symbols

Dependencies from manifests, versioned

@types/lodash4.14.157 · 1×
husky4.2.5 · 1×
lodash4.17.19 · 1×
prettier2.4.1 · 1×
tsdx0.13.2 · 1×
tslib2.0.0 · 1×
typescript3.9.6 · 1×

For agents

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

⬇ download graph artifact