Added Documentation in MergeSortRecursive.java#7190
Closed
AdityaKeshari05 wants to merge 2 commits intoTheAlgorithms:masterfrom
Closed
Added Documentation in MergeSortRecursive.java#7190AdityaKeshari05 wants to merge 2 commits intoTheAlgorithms:masterfrom
AdityaKeshari05 wants to merge 2 commits intoTheAlgorithms:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7190 +/- ##
=========================================
Coverage 78.91% 78.91%
Complexity 6883 6883
=========================================
Files 774 774
Lines 22746 22746
Branches 4468 4468
=========================================
+ Hits 17949 17951 +2
+ Misses 4077 4076 -1
+ Partials 720 719 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This pull request has been automatically closed because its workflows or checks failed and it has been inactive for more than 14 days. Please fix the workflows and reopen if you'd like to continue. Merging from main/master alone does not count as activity. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request enhances the readability and maintainability of the MergeSortRecursive implementation by adding clear, structured, and professional comments throughout the code.
The changes focus purely on documentation and do not alter the existing logic or behavior of the algorithm.
What was improved
Added class-level and method-level JavaDoc comments
Clearly explained:
The purpose of the class
Recursive divide-and-conquer flow of Merge Sort
Base cases and merge logic
Improved inline comments to explain why each step is performed
Made the code more beginner-friendly and interview-ready