Skip to content

Conversation

shimmer12
Copy link

@shimmer12 shimmer12 commented Oct 8, 2025

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter
Copy link

codecov-commenter commented Oct 8, 2025

Codecov Report

❌ Patch coverage is 78.10219% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.40%. Comparing base (4fe37c3) to head (1e5faa8).
⚠️ Report is 24 commits behind head on master.

Files with missing lines Patch % Lines
...ealgorithms/datastructures/tries/PatriciaTrie.java 78.10% 16 Missing and 14 partials ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

shimmer12 and others added 3 commits October 9, 2025 03:34
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.
@DenizAltunkapan
Copy link
Member

@shimmer12 Please fix the failing workflows so I can start the review.

@shimmer12
Copy link
Author

I tried a lot, I don't know what's going wrong, (haven't committed chanes much to workflows prs)

@DenizAltunkapan
Copy link
Member

@shimmer12 Your code isnt formatted correctly and i think your tests are failing

@shimmer12
Copy link
Author

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants