From ea24cd47fd9e1bf5f080d3e1009ba14b66f123bc Mon Sep 17 00:00:00 2001 From: Revone Date: Tue, 29 Aug 2023 20:52:15 +0800 Subject: [PATCH] v1.19.0 published --- README.md | 28 +++++++++++++--------------- package.json | 2 +- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index f2260bc..3d25e4b 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,18 @@ ## Brief Javascript & TypeScript Data Structure Library. +Binary Tree, Binary Search Tree (BST), AVL Tree, Tree Multiset, Segment Tree, Binary Indexed Tree, Graph, Directed Graph, Undirected Graph, Linked List, Singly Linked List, Doubly Linked List, Queue, Object Deque, Array Deque, Stack, Hash, Coordinate Set, Coordinate Map, Heap, Priority Queue, Max Priority Queue, Min Priority Queue, Trie ## Algorithms list only a few out, you can discover more in API docs DFS, DFSIterative, BFS, morris, Bellman-Ford Algorithm, Dijkstra's Algorithm, Floyd-Warshall Algorithm, Tarjan's Algorithm -# How -## install +## Code design +By strictly adhering to object-oriented design (BinaryTree -> BST -> AVLTree -> TreeMultiset), you can seamlessly inherit the existing data structures to implement the customized ones you need. Object-oriented design stands as the optimal approach to data structure design. +# How + +## install ### yarn ```bash @@ -163,11 +167,6 @@ import {UndirectedGraph} from 'data-structure-typed'; Array.from(dijkstraResult?.seen ?? []).map(vertex => vertex.id) // ['A', 'B', 'D'] ``` -[API Docs](https://data-structure-typed-docs.vercel.app) - -[Live Examples](https://data-structure-typed-examples.vercel.app) - - ![](https://github.com/zrwusa/assets/blob/master/images/data-structure-typed/examples/dfs-pre-order.webp) ![](https://github.com/zrwusa/assets/blob/master/images/data-structure-typed/examples/test-graphs.webp) @@ -176,20 +175,19 @@ import {UndirectedGraph} from 'data-structure-typed'; ![](https://github.com/zrwusa/assets/blob/master/images/data-structure-typed/examples/parenthesis-check.webp) + +## API docs & Examples + +[API Docs](https://data-structure-typed-docs.vercel.app) + +[Live Examples](https://data-structure-typed-examples.vercel.app) + Live Examples - -## API docs - - [//]: # ([Examples Repository](https://github.com/zrwusa/data-structure-typed-examples)) Examples Repository - -Meticulously crafted to empower developers with a versatile set of essential data structures. Our library includes a -wide range of data structures - ## Data Structures diff --git a/package.json b/package.json index 447fd46..70044d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "data-structure-typed", - "version": "1.18.8", + "version": "1.19.0", "description": "Explore our comprehensive Javascript Data Structure / TypeScript Data Structure Library, meticulously crafted to empower developers with a versatile set of essential data structures. Our library includes a wide range of data structures, such as Binary Tree, AVL Tree, Binary Search Tree (BST), Tree Multiset, Segment Tree, Binary Indexed Tree, Graph, Directed Graph, Undirected Graph, Singly Linked List, Hash, CoordinateSet, CoordinateMap, Heap, Doubly Linked List, Priority Queue, Max Priority Queue, Min Priority Queue, Queue, ObjectDeque, ArrayDeque, Stack, and Trie. Each data structure is thoughtfully designed and implemented using TypeScript to provide efficient, reliable, and easy-to-use solutions for your programming needs. Whether you're optimizing algorithms, managing data, or enhancing performance, our TypeScript Data Structure Library is your go-to resource. Elevate your coding experience with these fundamental building blocks for software development.", "main": "dist/index.js", "scripts": {