Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
21.3K+ articles
Arrays
6.1K+ articles
Competitive Programming
3.1K+ articles
Greedy
2.1K+ articles
Algorithms
1.9K+ articles
Sorting
1.7K+ articles
Heap
260+ articles
priority-queue
148+ articles
cpp-priority-queue
53+ articles
min-heap
26 posts
Recent Articles
Popular Articles
Maximum amount of capital required for selecting at most K projects
Last Updated: 07 March 2023
Given an integer N, representing number of projects, two arrays P[] and C[], consisting of N integers, and two integers W and K where, W is the initial capital amount, P[i...
read more
Greedy
Sorting
Mathematical
Heap
DSA
cpp-priority-queue
min-heap
Find the Platform at which the given Train arrives
Last Updated: 06 April 2023
Given a 2D array arr[][3] consisting of information of N trains where arr[i][0] is the train number, arr[i][1] is the arrival time, and arr[i][2] is the duration of stoppa...
read more
Greedy
Searching
Sorting
Heap
DSA
Arrays
priority-queue
min-heap
Maximize count of increasing triplets from any permutation of given 3 Arrays
Last Updated: 20 November 2021
Given three arrays X[], Y[], and Z[] each consisting of N integers, the task is to find the maximum number of triplets (X[i], Y[i], Z[i]) such that (X[i] Y[i] Z[i]) for ...
read more
Greedy
Sorting
Mathematical
Heap
DSA
Arrays
priority-queue
min-heap
Maximize array sum by replacing at most L elements to R for Q queries
Last Updated: 15 February 2023
Given an array arr[] consisting of N integers and an array Query[][] consisting of M pairs of the type {L, R}, the task is to find the maximum sum of the array by performi...
read more
Greedy
Sorting
Heap
DSA
Arrays
array-range-queries
min-heap
Shortest distance between given nodes in a bidirectional weighted graph by removing any K edges
Last Updated: 06 December 2023
Given a positive integer K and a weighted undirected connected graph of N nodes and E edges as an array Edges[] of the type {u, v, W} representing the edges between Node u...
read more
Tree
Graph
Backtracking
Heap
Recursion
C++ Programs
DSA
DFS
Graph Traversals
min-heap
Sum of first M fractions formed from Array of primes
Last Updated: 25 January 2023
Given an integer M and a sorted integer array arr[] of length N containing 1 and N-1 prime numbers, each appearing just once, the task is to find the sum of M smallest pos...
read more
Greedy
Mathematical
DSA
Arrays
cpp-priority-queue
min-heap
Introduction to Block Sort
Last Updated: 03 December 2024
Block sort is a sorting algorithm that sorts an array by dividing it into blocks of fixed size, sorting each block individually, and then merging the sorted blocks back in...
read more
Sorting
Heap
Python
Competitive Programming
DSA
Arrays
Merge Sort
Data Structures
min-heap
Min Heap meaning in DSA
Last Updated: 17 March 2023
A min heap is a binary tree-based data structure where the value of each node is less than or equal to its child nodes.In other words, the root node is always the minimum ...
read more
Heap
Picked
DSA
Definitions and Meanings
min-heap
Heap in JavaScript
Last Updated: 17 November 2024
A Heap is a special Tree-based Data Structure that has the following properties.It is a complete Complete Binary Tree.It either follows max heap or min heap property.A Min...
read more
Heap
JavaScript
Web Technologies
DSA
min-heap
Introduction to Min-Heap – Data Structure and Algorithm Tutorials
Last Updated: 14 February 2025
A Min-Heap is a Data Structure with the following properties.It is a complete Complete Binary Tree.The value of the root node must be the smallest among all its descendan...
read more
Heap
Data Structures
DSA
min-heap
Heap data structure implementation in swift
Last Updated: 28 April 2025
A heap is a complete binary tree where each node satisfies the heap property. The heap property is different for different types of heaps but, in general, it means that ea...
read more
Heap
Picked
DSA
min-heap
max-heap
Split Array into Consecutive Subsequences of Size K or more.
Last Updated: 09 November 2023
Given an integer array arr[] that is sorted in increasing order and an integer K. Check whether it is possible to split arr[] into one or more subsequences such that both ...
read more
Heap
DSA
Data Structures-Heap
min-heap
Maximum number of elements that can be taken
Last Updated: 23 December 2023
Given an array of N integers. Each i'th element increases your sum by a[i], where a[i] can be negative which may decrease your sum. You start with sum=0 and iterate the ar...
read more
Competitive Programming
Picked
Geeks Premier League
DSA
Greedy Algorithms
min-heap
Geeks Premier League 2023
Kth Largest Element in an Array
Last Updated: 18 September 2024
Given an integer array arr[] of size n elements and a positive integer K, the task is to return the kth largest element in the given array (not the Kth distinct element).E...
read more
Sorting
DSA
Arrays
Quick Sort
counting-sort
min-heap
Meeting Rooms - Room with Maximum Meetings
Last Updated: 28 April 2025
Given an integernrepresenting the number of rooms numbered from0ton - 1 and a 2D integer arraymeetings[][]wheremeetings[i]=[starti, endi]indicates that a meeting is sch...
read more
Sorting
Heap
DSA
Arrays
Greedy Algorithms
min-heap
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !