Skip to content

chore: move HeavyLightDecomposition to datastructures/trees#7485

Merged
DenizAltunkapan merged 1 commit into
TheAlgorithms:masterfrom
priyanshuvishwakarma273403:fix-7453-move-heavy-light-decomposition
Jun 20, 2026
Merged

chore: move HeavyLightDecomposition to datastructures/trees#7485
DenizAltunkapan merged 1 commit into
TheAlgorithms:masterfrom
priyanshuvishwakarma273403:fix-7453-move-heavy-light-decomposition

Conversation

@priyanshuvishwakarma273403

Copy link
Copy Markdown
Contributor

Description

This PR resolves a structural inconsistency where a single file, HeavyLightDecomposition.java, resided in a top-level tree/ package, while all other tree algorithms are placed under datastructures/trees/.

Related Issue

Fixes #7453

Changes Made

  • Moved HeavyLightDecomposition.java to src/main/java/com/thealgorithms/datastructures/trees/
  • Moved HeavyLightDecompositionTest.java to src/test/java/com/thealgorithms/datastructures/trees/
  • Updated package declarations to com.thealgorithms.datastructures.trees in both files
  • Deleted the now-empty tree/ directories

Checklist

  • Code compiles successfully.
  • Unit tests passed.
  • Followed repository code style rules.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.85%. Comparing base (8a3bd3a) to head (e5bd6f5).

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #7485   +/-   ##
=========================================
  Coverage     79.85%   79.85%           
- Complexity     7328     7329    +1     
=========================================
  Files           807      807           
  Lines         23817    23817           
  Branches       4687     4687           
=========================================
+ Hits          19018    19019    +1     
  Misses         4036     4036           
+ Partials        763      762    -1     

☔ View full report in Codecov by Harness.
📢 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.

@DenizAltunkapan DenizAltunkapan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution 👍

@DenizAltunkapan DenizAltunkapan merged commit fafc5a2 into TheAlgorithms:master Jun 20, 2026
7 checks passed
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.

Move tree/HeavyLightDecomposition into datastructures/trees and remove the stray tree/ package

3 participants