Skip to content

Conversation

@yanglbme
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 26, 2025 23:23
@idoocs idoocs added core team Issues or pull requests from core team md Issues or Pull requests relate to .md files ts Issues or Pull requests relate to .ts code labels Dec 26, 2025
@yanglbme yanglbme merged commit dad3727 into main Dec 26, 2025
5 of 6 checks passed
@yanglbme yanglbme deleted the dev branch December 26, 2025 23:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates TypeScript solutions for LeetCode problems to use a modern priority queue API. The changes primarily involve updating the MaxPriorityQueue and MinPriorityQueue usage to work with a new API that no longer wraps values in objects with an element property. Additionally, the PR includes documentation improvements such as fixing trailing whitespace and refining complexity analysis.

  • Updated priority queue API calls to directly return values instead of wrapped objects
  • Removed redundant solution implementations and replaced complex TreeSet-based solutions with simpler priority queue-based approaches
  • Improved documentation consistency and accuracy in both English and Chinese README files

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
solution/2500-2599/2558.Take Gifts From the Richest Pile/Solution.ts Updated to use generic type parameter and removed .element property access
solution/2500-2599/2558.Take Gifts From the Richest Pile/README_EN.md Synced code examples with Solution.ts changes and fixed trailing whitespace
solution/2500-2599/2558.Take Gifts From the Richest Pile/README.md Synced code examples with Solution.ts changes and fixed trailing whitespace
solution/2500-2599/2530.Maximal Score After Applying K Operations/Solution.ts Updated to use generic type parameter and removed .element and ! operator
solution/2500-2599/2530.Maximal Score After Applying K Operations/README_EN.md Synced code examples with Solution.ts changes
solution/2500-2599/2530.Maximal Score After Applying K Operations/README.md Synced code examples with Solution.ts changes
solution/2400-2499/2402.Meeting Rooms III/README_EN.md Improved documentation clarity and updated complexity analysis
solution/2400-2499/2402.Meeting Rooms III/README.md Improved documentation clarity and updated complexity analysis
solution/2300-2399/2336.Smallest Number in Infinite Set/Solution2.ts Removed entire file (redundant solution)
solution/2300-2399/2336.Smallest Number in Infinite Set/Solution.ts Replaced TreeSet implementation with MinPriorityQueue-based solution
solution/2300-2399/2336.Smallest Number in Infinite Set/README_EN.md Updated to reflect new solution approach and removed redundant Solution 2 section
solution/2300-2399/2336.Smallest Number in Infinite Set/README.md Updated to reflect new solution approach and removed redundant Solution 2 section

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core team Issues or pull requests from core team md Issues or Pull requests relate to .md files ts Issues or Pull requests relate to .ts code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants