Algorithms Minimize Maximum Distance between Gas Stations [Solved 3 approaches] You are given a sorted array βarrβ of length βnβ, which contains positive integer positions of βnβ gas stations on the X-axis. You are also given an integer βkβ. You have to place βkβ new gas stations on the X-axis.

Time Complexity Time and Space Complexity of Heap data structure operations In this article, we have explored the Time and Space Complexity of Heap data structure operations including different cases like Worst, Average and Best case. At the end, we have added a table summarizes the complexities.

Algorithms K-th Smallest element in a row and column wise sorted matrix We have discussed how can we find the kth smallest element in a given n x n matrix, in which every row and column is sorted in non-decreasing order and covered 3 approaches: brute force, using min-heap and using Binary Search.

Data Structures Leftist Heap A leftist heap is a modification priority queue implemneted with variant of binary heap. Regarding binary heap, it is always a complete binary tree. It has two main properites Mean Heap Property and Heavy on left side and supports common operations in O(log N) time complexity.

Data Structures Binomial Heap Binomial Heap is an extension of Binary Heap that provides faster union or merge operation together with other operations provided by Binary Heap. A Binomial Heap is a collection of Binomial trees. Binomial Heap is used to implement priority queues.