LeetCode 871: Minimum Number of Refueling Stops
A clear explanation of minimizing refueling stops using a greedy max heap over reachable stations.
14 notes
A clear explanation of minimizing refueling stops using a greedy max heap over reachable stations.
A clear explanation of finding the kth smallest fraction from a sorted array using a min-heap.
A clear explanation of finding the minimum time to reach the bottom-right cell using a priority queue and minimax path reasoning.
A clear explanation of maintaining the kth largest element in a stream using a fixed-size min heap.
A heap-based solution for finding the smallest range that contains at least one number from each sorted list.
A clear explanation of maximizing capital by selecting at most k projects using sorting and a max heap.
A clear explanation of trapping rain water in a 2D elevation map using a min heap and boundary expansion.
A clear explanation of finding the k smallest pair sums from two sorted arrays using a min heap and best-first search.
A clear explanation of implementing a simplified Twitter using hash maps, sets, timestamps, and a heap.
A two-heap data structure for adding numbers from a stream and returning the current median in constant time.
A clear explanation of the Meeting Rooms II problem using a min heap to track active meeting end times.
A clear explanation of computing the skyline formed by buildings using sweep line and a max-heap.
A detailed explanation of merging k sorted linked lists using a min heap.
Binary, d-ary, Fibonacci, pairing, soft heaps, double-ended structures, tournament trees, and concurrent priority queue designs.