archgaelix
Uses
Archive
heap
Find the Kth max and min element in an array
#array
#heap
K Closest Points to Origin
#heap
#geometry
#medium
Task Scheduler
#heap
#medium
Find Median from Data Stream
#heap
#hard
Rearrange characters in a string such that no two adjacent are same
#string
#heap
#greedy
Merge k Sorted Lists
#heap
#hard
Implement a maxheap/minheap
#heap
Heap sort
#heap
Maximum of all subarrays of size K
#heap
Kth largest element in an array
#heap
Merge K sorted arrays
#heap
Merge 2 binary max heaps
#heap
Kth largest sum continuous subarrays
#heap
Reorganize strings
#heap
Merge K sorted linked lists
#ll
#heap
Smallest range in K lists
#heap
Median in a stream of integers
#heap
Check if a binary tree is heap
#heap
Connect N ropes with minimum cost
#heap
#greedy
Convert BST to min heap
#heap
Convert min heap to max heap
#heap
Minimum sum of two numbers formed from digits of an array
#heap