-
Notifications
You must be signed in to change notification settings - Fork 20.5k
feat(tries): add Patricia (radix) trie with tests #6713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: shimmer12 <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6713 +/- ##
============================================
+ Coverage 76.43% 77.40% +0.96%
- Complexity 5974 6279 +305
============================================
Files 714 724 +10
Lines 20240 20976 +736
Branches 3927 4094 +167
============================================
+ Hits 15471 16236 +765
+ Misses 4178 4092 -86
- Partials 591 648 +57 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: shimmer12 <[email protected]>
Updated comments for clarity and corrected parameter descriptions in the PatriciaTrie class. Enhanced the remove method to properly handle key removal and cleanup.
Updated remove method to return boolean instead of value. Improved documentation and refactored removeRecursive method.
@shimmer12 Please fix the failing workflows so I can start the review. |
I tried a lot, I don't know what's going wrong, (haven't committed chanes much to workflows prs) |
@shimmer12 Your code isnt formatted correctly and i think your tests are failing |
Okay I will modify it, thanks for pointing it out. |
Refactored PatriciaTrie.java for better formatting and clarity.
Updated the test method for inserting into the Patricia Trie to check for size increment when a split occurs. Added assertions to verify the presence of new keys after the split.
clang-format -i --style=file path/to/your/file.java