LeetCode Daily Challenge-2163: Minimum Difference in Sums After Removal of Elements(Hard, Java, DP+priorityQueue+greedy)
TC O(n log n) SC O(n) using minHeap, maxHeap and DP
Jul 18, 20256 min read2

Search for a command to run...
Articles tagged with #heap
TC O(n log n) SC O(n) using minHeap, maxHeap and DP

Mastering Two-Pointer Technique with Combinatorics: From O(2^n) to O(n log n)

Mastering the Art of Greedy Selection While Preserving Order
