#heap
Read more stories on Hashnode
Articles with this tag
You are given an array of CPU tasks, each represented by letters A to Z, and a cooling time, n. Each cycle or interval allows the completion of one...
Given an integer array nums and an integer k, return thek<sup>th</sup>largest element in the array. Note that it is the k<sup>th</sup> largest element...
Given an array of points where points[i] = [x<sub>i</sub>, y<sub>i</sub>] represents a point on the X-Y plane and an integer k, return the k closest...
You are given an array of integers stones where stones[i] is the weight of the i<sup>th</sup> stone. We are playing a game with the stones. On each...
A heap is a type of binary tree where each level is fully filled with nodes except possibly the last one, which is filled from left to right. Each...