Skip to content

Conversation

@yanglbme
Copy link
Member

@yanglbme yanglbme commented Dec 6, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 6, 2025 00:00
@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 6, 2025
@yanglbme yanglbme merged commit ae35e0e into main Dec 6, 2025
14 checks passed
@yanglbme yanglbme deleted the dev branch December 6, 2025 00:00
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 adds a TypeScript solution for LeetCode problem 3578 "Count Partitions With Max-Min Difference at Most K". The solution implements a dynamic programming approach with a sliding window technique using an AVL tree to efficiently track maximum and minimum values.

  • Implements the sliding window + DP algorithm with O(n log n) time complexity
  • Uses datastructures-js AVL tree for efficient min/max tracking with duplicate support
  • Follows the same algorithm pattern as existing Python, Java, C++, Go, and Rust solutions

💡 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