Commit graph

  • ca7e60e465 fix: rename the keyValueNodeEntryRawToNodeAndValue to _keyValueNodeEntryRawToNodeAndValue and make it protected main Revone 2024-11-22 22:55:43 +1300
  • aab0c87da0 docs: add example code for Trie Revone 2024-11-22 19:53:32 +1300
  • e4ebf5fae1 fix: Skip writing when the ci process cannot read the subpackages directory. Revone 2024-11-22 17:48:13 +1300
  • c3122e7fc7 fix: Type safety fixes for ComparableObject. feat: Use extractComparable in the BST data structure to control key comparisons instead of directly passing a comparator. Use isReverse to control whether the tree is reversed instead of relying on the comparator. Removed the unnecessary getNodeByKey method.chore: Support list configuration for performance testing. Revone 2024-11-22 17:12:06 +1300
  • 080a671de1 feat: add range search functionality to BST Revone 2024-11-22 11:23:57 +1300
  • 713b145a1c feat: Add a highly generic search method to binary tree data structures. Adjust the parameter order for the getPathToRoot method. Add example code to the BST documentation. Rename the get method in DoublyLinkedList and SinglyLinkedList to search. Revone 2024-11-21 19:02:19 +1300
  • a0623db58c style: Beautify code format for test case conversion examples Revone 2024-11-21 11:48:24 +1300
  • a1c468b19b chore: Automate writing code examples to README.md for sub-packages Revone 2024-11-21 10:45:32 +1300
  • fde5af1f1c fix: #114. feat: Enhanced SinglyLinkedList methods to support Node type parameters for push, unshift, addAfter, addBefore, getNode, addAt, delete, indexOf; added a new get method. Revone 2024-11-20 22:07:42 +1300
  • 09a5d8a11a feat: Enhanced DoublyLinkedList methods to support Node type parameters for push, unshift, addAfter, addBefore, getNode, addAt, delete, indexOf, and getBackward; added a new get method. Revone 2024-11-20 20:43:22 +1300
  • 1b0ee601ac fix: Fix the bug where a regex replacement error occurs when test cases contain both .toBeUndefined() and .toBe or .toEqual. Revone 2024-11-20 17:29:44 +1300
  • f84518cc6d fix: Fixed a bug in the DoublyLinkedList.delete method. Improved the feature for generating sample code documentation for test cases. Added classic example code for Heap and DoublyLinkedList. Revone 2024-11-20 16:27:37 +1300
  • e09be8c3a6 chore: Implement unit tests as example code in the README.md and source code comments. Revone 2024-11-19 23:21:40 +1300
  • 0ff5ddc410 chore: Implement unit tests as example code in the README.md and source code comments. Revone 2024-11-19 23:20:25 +1300
  • 476395ef72 chore: Add source map support for ESModule. Add a 'browser' field to package.json. Performance optimization of getRandomIntArray method Revone 2024-11-16 23:07:53 +1300
  • 5adf75f99c fix: Fix the bug where the binary tree repeatedly adds elements with the same key in map mode and the bug where the node’s value is instantiated simultaneously. Enable map mode by default. Revone 2024-11-03 16:38:07 +1300
  • 37ff9207fe release: v1.53.0 Revone 2024-11-01 19:40:53 +1300
  • 28ff30ea4b feat: The binary trees support storing values in a Map and provides parameters for Map mode. #111. Rename type definitions and parameter names to align with best practices. Revone 2024-11-01 19:40:19 +1300
  • 8ae577315a release: v1.52.9 Revone 2024-10-31 17:13:36 +1300
  • 6ef4b47b0b docs: Complete the documentation for the print method in BinaryTree. Correct the unit tests for the print method. Revone 2024-10-31 16:44:01 +1300
  • 9ace395564 fix: Fix bug in BinaryTree.print to support undefined, null, and NIL. Fix #106 Revone 2024-10-31 16:18:51 +1300
  • 0a8b9265cc fix: #110 Revone 2024-10-31 13:26:45 +1300
  • 761c1c6af4 fix: #110 Revone 2024-10-31 13:20:00 +1300
  • 5992ae5d0d release: v1.52.8 wiht ci flow fixed Revone 2024-10-31 09:41:03 +1300
  • 9e62968e3d release: v1.52.8 Revone 2024-10-30 21:28:20 +1300
  • 487f45f6b2 release: v1.52.7 Revone 2024-10-30 21:00:03 +1300
  • 6428e0f228 fix: Bug fix #103: Fixed an issue where all binary tree clone methods lost constructor parameters. Optimized variable names. Standardized access modifiers for binary tree member variables. Revone 2024-10-30 20:52:23 +1300
  • fc0d157295 refactor: Test coverage increased to 95.63%. Upgraded all dependencies. Added a toVisual method while retaining the print method. Replaced all short-circuit evaluations with logical expressions. Revone 2024-10-30 15:30:28 +1300
  • aece11bd01 release: v1.52.6 Revone 2024-10-29 17:27:40 +1300
  • a29dc270e6 Change the print method to return a value instead of directly calling console.log.Unify the logic of all keyValueOrEntryOrRawElementToNode methods in BinaryTree. Use a generic isComparable method to determine if a value is comparable in size when using the isKey method in the BinaryTree. Fix the boundary value bug in the getNodes method of BinaryTree. Support callback functions in getLeftMost and getRightMost to support returning results with different properties. If a comparator is specified for BST, the isKey method will force the object type to be comparable. The isComparable method has been implemented based on JavaScript's comparison principles. Revone 2024-10-29 16:23:24 +1300
  • 9f197d48b0 fix: import * as console from 'console' removed Revone 2024-10-21 21:41:56 +1300
  • 18fe006652 style: Remove unnecessary comments. Revone 2024-10-21 21:34:51 +1300
  • 5a492c1801 refactor: To standardize the _dfs method of the BinaryTree to achieve full generalization. Revone 2024-10-21 20:55:48 +1300
  • e271f73de0 feat: Refactor the BinaryTree's dfs method into a private helper function _dfs to prepare for a more generic implementation. Revone 2024-10-21 19:14:36 +1300
  • 42235802c3 fix: The default value for the iterationType parameter in all binary tree methods is the member variable this.iterationType. Revone 2024-10-20 17:22:45 +1300
  • a699b097c7 feat: The leaves method of the binary tree supports both RECURSIVE and ITERATIVE modes. Revone 2024-10-20 16:59:01 +1300
  • 85b79ff1ad feat: All binary tree data structures support the leaves method. It is used to find all leaf nodes. Revone 2024-10-20 15:40:02 +1300
  • ea0d4272df fix: Fix #100 the return type error in the find method's callback function in IterableEntryBase. Add test cases for HashMap and Stack. Revone 2024-10-19 19:51:49 +1300
  • 07dd75de70 test: The test cases have been added, though slightly tricky. The overall test coverage is currently at 93.27%. Revone 2024-10-16 21:55:48 +1300
  • e6acc0f8f1 docs: diagram width Revone 2024-10-11 22:50:11 +1300
  • 68d4ca3b10 docs: Merging colloquial descriptions with data structure selection Revone 2024-10-11 22:47:06 +1300
  • 2acd0fe366 release: version 1.52.4 Revone 2024-10-11 11:07:43 +1300
  • e5bdaec771
    Merge pull request #95 from philipplentzen/main zrwusa 2024-10-11 10:33:46 +1300
  • b90da5cf82 docs(queue): fix mismatch between typings and jsdoc Philipp Lentzen 2024-10-10 13:34:19 +0200
  • bf37a4df7f style: optimization of code style of HashMap zrwusa 2024-09-19 17:20:58 +1200
  • 986e7cfd8f release: v1.52.3 Revone 2024-09-03 10:22:22 +1200
  • 93981f6932 Merge branch 'main' of https://github.com/zrwusa/data-structure-typed Revone 2024-09-03 09:45:06 +1200
  • 022c337ca9
    Merge pull request #94 from sjunepark/trie zrwusa 2024-09-03 09:31:09 +1200
  • f2bbba8a9b chore: loop to check if remote package is exist Revone 2024-09-03 09:28:46 +1200
  • 59cf685395 fix(trie): trie returns invalid string when only the fist character matches, and the second doesn't match June Park 2024-09-03 00:49:53 +0900
  • 7e45aaf609 style: Prettier version updated. Code style adhered to Prettier strictly. Revone 2024-08-27 10:56:04 +1200
  • ac1712ba04 feat: supports compact method to save memory. #91 Revone 2024-08-27 10:24:38 +1200
  • 5ff8eb97d9 release: v1.52.1 Revone 2024-08-04 19:41:40 +1200
  • 6710e9d41e release: v1.52.1 Revone 2024-08-04 19:20:21 +1200
  • 3e91a97987 fix: #89. Supports maxLen for max length of the Deque Revone 2024-08-04 19:19:14 +1200
  • c7dbfd54f1 fix: #87 Revone 2024-08-04 19:05:19 +1200
  • abfb441bc7 docs: priority queue is heap Revone 2024-08-02 10:15:56 +1200
  • 6642f8b66b docs: plain language explanations Revone 2024-07-31 21:04:20 +1200
  • 5d146cbfc2 docs: refined the table of deferences of data structures Revone 2024-07-31 14:33:55 +1200
  • 7f32fee19a docs: Added a document detailing the differences between various data structures, including schematic diagrams of the data structures. Revone 2024-07-31 14:10:32 +1200
  • 5dc132cb2a fix: #86 Revone 2024-03-16 09:59:48 +0800
  • ec8242044a refactor: Renamed some type aliases Revone 2024-03-16 09:47:22 +0800
  • 94d34e61e7 Merge branch 'main' of https://github.com/zrwusa/data-structure-typed Revone 2024-02-01 23:26:49 +0800
  • 8616e4ddc4 release: 1.52.0 Revone 2024-02-01 23:26:45 +0800
  • 1ae9e929b1 feat: Provide the toElementFn method during instantiation for the entire data structure series, allowing the mapping of raw data to the desired data type and direct insertion of data into the data structure to be completed within a single loop. fix: Override the corresponding clone, filter, and map methods in the Heap and PriorityQueue data structures, ensuring the accurate return of the respective data structures. #84 fixed. Revone 2024-02-01 21:05:10 +0800
  • 6539e50598 feat: Provide custom toElementFn in Heap configuration options to transform user raw data into a specified element type within a single loop. Revone 2024-01-31 10:04:21 +0800
  • 8051850331 feat: When comparing two values in the Heap and binary search tree, if one of the values is of object type, it is mandatory to pass a custom comparator function. Revone 2024-01-29 20:23:06 +0800
  • 3028a78985 Refactor: Abandon the use of Comparable types as keys for the binary tree, as the '>', '>=', '<', '<=' operators are supported by the any type. The heap also adopts the same comparator as the binary tree. Revone 2024-01-29 11:35:24 +0800
  • 6fccb57f1b
    Update README.md zrwusa 2024-01-27 11:10:38 +0800
  • c2f98f851b release: 1.51.9 Revone 2024-01-26 18:26:40 +0800
  • 02d71a23ba Refactor: All binary tree data structures now support the toEntryFn for extracting key and value from raw data at once, avoiding users from having to traverse data multiple times, thus improving performance. Chore: Explicitly use the override keyword. Revone 2024-01-26 18:20:15 +0800
  • 3c26538c2e release: 1.51.8 Revone 2024-01-25 10:55:59 +0800
  • 0013242189 Refactor: In the binary search tree data structure, use a comparator instead of a variant configuration for comparison. Revone 2024-01-25 10:24:25 +0800
  • 89dadfccc2 Refactor: Remove the unnecessary design of the extractor in the Binary Search Tree (BST). Utilize 1, -1, and 0 to replace the original comparison results GT, LT, and EQ. Revone 2024-01-25 09:38:03 +0800
  • 1303aba070 refactor: Use Comparable type constraint for the key in the binary tree to improve comparator performance. Revone 2024-01-24 18:38:34 +0800
  • 82acc04e6f release: 1.51.7 Revone 2024-01-19 18:06:28 +0800
  • ae11bca83c Refactor: Added the _ensureCallback method to eliminate redundant code. Revone 2024-01-19 18:02:56 +0800
  • 3fa7155c97 fix: #82. refactor: Minor performance optimization, rewrite the _compare method within the Red-Black Tree. test: Change the test sequence in binary-tree-overall.test. Revone 2024-01-19 17:13:25 +0800
  • 2eac608960 release: 1.51.6 Revone 2024-01-18 19:18:29 +0800
  • 5d41696998 release: 1.51.6 Revone 2024-01-18 19:18:15 +0800
  • 4bebf6c261 docs: downloads added to individual packages v1.51.5 Revone 2024-01-18 18:53:05 +0800
  • b442db39e8 docs: fix the links Revone 2024-01-18 12:01:01 +0800
  • c6b9564db7 release: 1.51.4 Revone 2024-01-17 22:43:32 +0800
  • 18b1fab16d feat: Restore the TreeNode data structure. Add number utilities to the utils module. docs: Update POSTS_zh-CN.md. Revone 2024-01-17 22:27:38 +0800
  • 25e9f36577 feat: Remove the meaningless Tree data structure. refactor: Adjust the logic of isRealNode for a slight performance improvement. docs: table fixed Revone 2024-01-16 11:26:43 +0800
  • e2f554fb5c docs: re-organized Revone 2024-01-16 11:01:27 +0800
  • bb37adbe68 release: 1.51.3. chore: Restore keyword list to version 1.47.4. Revone 2024-01-16 10:40:21 +0800
  • 6ca47958bf release: 1.51.2 Revone 2024-01-15 21:14:50 +0800
  • 56f1fabfca refactor: Renaming SENTINEL to NIL and placing the NIL node in the BinaryTree allows for direct equality checks in isNIL and isRealNode, avoiding excessive operations to improve performance. As a result, the performance of the get method in AVLTree has tripled. Revone 2024-01-15 21:05:42 +0800
  • 173966edea release: 1.51.1 Revone 2024-01-15 12:13:05 +0800
  • 9915ce9a0d Refactor: Rename _defaultOneParamCallback to _DEFAULT_CALLBACK. Adopt early return code style in the ensureNode method. Rename some internal recursive method names. Revone 2024-01-15 12:12:01 +0800
  • 46cdf2b668 release: 1.50.9 Revone 2024-01-14 20:57:07 +0800
  • 76df347da5 efactor: completely eliminate the use of enumerations Revone 2024-01-14 19:49:50 +0800
  • 25de27cf6c fix: Explicitly specify IterationType. Revone 2024-01-14 18:59:28 +0800
  • 312ba2f492 release: 1.50.8 Revone 2024-01-14 03:15:17 +0800
  • 1c2a70741b test: RedBlackTree Revone 2024-01-14 03:14:26 +0800
  • a11c104dff refactor: Replace all enumerations with union types for significant performance improvements in BST, AVLTree, and RedBlackTree. Revone 2024-01-14 03:04:07 +0800
  • d0b3fcf164 release: 1.50.7 Revone 2024-01-12 14:33:45 +0800
  • a653d465fa Refactor: Use 'this.isRealNode' instead of explicit null checks in getHeight, getMinHeight, and getNodeByKey methods in the binary tree. In the red-black tree, directly invoke the parent class getNode method, significantly improving the speed of red-black tree node deletion and retrieval. Revone 2024-01-12 14:15:05 +0800
  • 644ce69190 Refactor: Review methods in the binary tree that require explicit 'override' annotation. Feat: Add the 'getMutableCount' method to AVLMultiMap. Revone 2024-01-12 11:28:15 +0800