MCPcopy
hub / github.com/TheAlgorithms/TypeScript

github.com/TheAlgorithms/TypeScript @main sqlite

repository ↗ · DeepWiki ↗
342 symbols 707 edges 208 files 100 documented · 29%
README

The Algorithms - TypeScript

TypeScript Repository of TheAlgorithms, which implements various algorithms and data structures in TypeScript.

TypeScript Banner

codecov Contributions Welcome Discord chat Gitpod Ready-to-Code


These implementations are for demonstrative/educational purposes only. Dedicated implementations of these algorithms and data structures are much better for performance and security reasons. We also do not provide any guarantee for API stability.


Before contributing to this repository, make sure to read our Contribution Guidelines. You can look at other TheAlgorithms Repositories or the issues with a "help wanted" label for inspiration regarding what to implement. Our maintainers will guide you through how to make your contribution properly if you make any mistakes. The names of the maintainers of this repository are listed in the CODEOWNERS file.


Extension points exported contracts — how you extend this code

Queue (Interface)
(no doc) [4 implementers]
data_structures/queue/queue.ts
LinkedList (Interface)
(no doc) [2 implementers]
data_structures/list/linked_list.ts
Map (Interface)
(no doc) [1 implementers]
data_structures/map/map.ts
TestCase (Interface)
(no doc)
maths/test/prime_factorization.test.ts
Set (Interface)
(no doc)
data_structures/set/set.ts
CoinChange (Interface)
(no doc)
dynamic_programming/coin_change.ts
TestCase (Interface)
(no doc)
dynamic_programming/test/coin_change.test.ts

Core symbols most depended-on inside this repo

push
called by 105
data_structures/list/linked_list.ts
set
called by 38
data_structures/map/map.ts
enqueue
called by 24
data_structures/queue/queue.ts
isEmpty
called by 18
data_structures/queue/queue.ts
tarjan
called by 16
graph/tarjan.ts
kosajaru
called by 15
graph/kosajaru.ts
pop
called by 14
data_structures/list/linked_list.ts
find
called by 13
data_structures/tries/tries.ts

Shape

Function 150
Method 136
Class 48
Interface 7
Enum 1

Languages

TypeScript100%

Modules by API surface

data_structures/heap/heap.ts28 symbols
data_structures/map/hash_map.ts18 symbols
data_structures/list/singly_linked_list.ts17 symbols
data_structures/list/doubly_linked_list.ts17 symbols
data_structures/tree/binary_search_tree.ts15 symbols
data_structures/list/linked_list.ts12 symbols
data_structures/map/map.ts10 symbols
data_structures/tries/tries.ts8 symbols
data_structures/stack/stack.ts8 symbols
data_structures/stack/linked_list_stack.ts8 symbols
data_structures/set/map_set.ts8 symbols
data_structures/queue/stack_queue.ts8 symbols

Dependencies from manifests, versioned

@types/jest29.0.3 · 1×
husky8.0.1 · 1×
jest29.0.3 · 1×
prettier3.2.5 · 1×
ts-jest29.0.2 · 1×
ts-node10.9.1 · 1×

For agents

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

⬇ download graph artifact