Skip to content

Conversation

Rahul-150705
Copy link
Contributor

  • Implemented PriorityQueueSort using Java's PriorityQueue (Min-Heap)
  • Added JavaDoc for class and method
  • Added test cases for normal, empty, negative, duplicate, and sorted arrays
  • Time Complexity: O(n log n)
  • Space Complexity: O(n)
  • This is my own work

Implemented PriorityQueueSort using Java's PriorityQueue (Min-Heap).
- Returns the array sorted in ascending order
- Time complexity: O(n log n)
- Space complexity: O(n)
@codecov-commenter
Copy link

codecov-commenter commented Sep 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.17%. Comparing base (45275ee) to head (be89524).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6532      +/-   ##
============================================
+ Coverage     75.14%   75.17%   +0.02%     
- Complexity     5590     5595       +5     
============================================
  Files           687      688       +1     
  Lines         19352    19361       +9     
  Branches       3742     3744       +2     
============================================
+ Hits          14543    14554      +11     
+ Misses         4245     4244       -1     
+ Partials        564      563       -1     

☔ 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.

Copy link

@donphelix donphelix left a comment

Choose a reason for hiding this comment

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

Looks good!

@DenizAltunkapan DenizAltunkapan merged commit 5fee204 into TheAlgorithms:master Sep 18, 2025
6 checks passed
@Rahul-150705
Copy link
Contributor Author

Looks good!

thanks man!

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.

4 participants