ca7e60e465
fix: rename the keyValueNodeEntryRawToNodeAndValue to _keyValueNodeEntryRawToNodeAndValue and make it protected
aab0c87da0
docs: add example code for Trie
e4ebf5fae1
fix: Skip writing when the ci process cannot read the subpackages directory.
c3122e7fc7
fix: Type safety fixes for ComparableObject.
080a671de1
feat: add range search functionality to BST
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.
a0623db58c
style: Beautify code format for test case conversion examples
a1c468b19b
chore: Automate writing code examples to README.md for sub-packages
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.
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.
1b0ee601ac
fix: Fix the bug where a regex replacement error occurs when test cases contain both .toBeUndefined() and .toBe or .toEqual.
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.
e09be8c3a6
chore: Implement unit tests as example code in the README.md and source code comments.
476395ef72
chore: Add source map support for ESModule. Add a 'browser' field to package.json. Performance optimization of getRandomIntArray method
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.
37ff9207fe
release: v1.53.0
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.
8ae577315a
release: v1.52.9
6ef4b47b0b
docs: Complete the documentation for the print method in BinaryTree. Correct the unit tests for the print method.
9ace395564
fix: Fix bug in BinaryTree.print to support undefined, null, and NIL. Fix #106
0a8b9265cc
fix: #110
761c1c6af4
fix: #110
5992ae5d0d
release: v1.52.8 wiht ci flow fixed
9e62968e3d
release: v1.52.8
487f45f6b2
release: v1.52.7
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.
fc0d157295
refactor: Test coverage increased to 95.63%.
aece11bd01
release: v1.52.6
a29dc270e6
Change the print method to return a value instead of directly calling console.log.Unify the logic of all keyValueOrEntryOrRawElementToNode methods in BinaryTree.
9f197d48b0
fix: import * as console from 'console' removed
18fe006652
style: Remove unnecessary comments.
5a492c1801
refactor: To standardize the _dfs method of the BinaryTree to achieve full generalization.
e271f73de0
feat: Refactor the BinaryTree's dfs method into a private helper function _dfs to prepare for a more generic implementation.
42235802c3
fix: The default value for the iterationType parameter in all binary tree methods is the member variable this.iterationType.