Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Slides
Recent questions tagged binary-heap
9
9 votes
1
1 answer
207
207 views
GO Classes DPP | GATE CS, DA | Data Structure | Heapify
Heaps are usually implemented using arrays.If an element is present at a known array index in a heap of size $N$, what is the time complexity to remove that element and r...
GO Classes
207
views
asked
Jul 22
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-231
goclasses-cs-dpp
goclasses-cs-dpp-day-329
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-heap
heapify
+
–
2
2 votes
1
1 answer
158
158 views
GO Classes DPP | GATE CS, DA | Data Structure | Heap Sort
A max-heap is stored using $0$-based indexing as:$$[60, 30, 45, 15, 5, 10, 20]$$During the first iteration of heap sort:Swap the root with the last element. Reduce the he...
GO Classes
158
views
asked
Jul 21
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-230
goclasses-cs-dpp
goclasses-cs-dpp-day-328
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
max-heap
binary-heap
heap-sort
+
–
4
4 votes
2
2 answers
151
151 views
GO Classes DPP | GATE CS, DA | Data Structure | DeleteMin from Min-Heap
A min-heap is stored using $1$-based indexing as:$[2, 13, 7, 17, 14, 22, 8, 21]$After one $\texttt{DeleteMin}$ operation, what is the final heap array?$[7, 13, 8, 17, 14,...
GO Classes
151
views
asked
Jul 21
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-230
goclasses-cs-dpp
goclasses-cs-dpp-day-328
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
min-heap
binary-heap
+
–
4
4 votes
2
2 answers
167
167 views
GO Classes DPP | GATE CS, DA | Data Structure | Insert in Max-Heap
The following max-heap is stored using $1$-based indexing:$[57, 53, 42, 48, 25, 34, 29, 18, 30, 25]$Insert $55$ into this max-heap. What is the final heap array?$[57, 55,...
GO Classes
167
views
asked
Jul 21
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-230
goclasses-cs-dpp
goclasses-cs-dpp-day-328
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
max-heap
binary-heap
+
–
6
6 votes
1
1 answer
143
143 views
GO Classes DPP | GATE CS, DA | Data Structure | Binary Min-Heaps
Consider the following binary min-heap:Perform the following operations in order:$\text{DeleteMin}$ $\text{Insert 8}$ $\text{Insert 2}$ What is the final array representa...
GO Classes
143
views
asked
Jul 21
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-230
goclasses-cs-dpp
goclasses-cs-dpp-day-328
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
min-heap
binary-heap
+
–
6
6 votes
1
1 answer
139
139 views
GO Classes DPP | GATE CS, DA | Data Structure | Binary Heap
A binary heap is stored in an array using $\textbf{1}$-based indexing. If a node is stored at location $i$ and it has two children, where is its left child stored?$\left\...
GO Classes
139
views
asked
Jul 20
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-229
goclasses-cs-dpp
goclasses-cs-dpp-day-327
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-heap
+
–
5
5 votes
3
3 answers
1.7k
1.7k views
GATE CSE 2026 | Set 1 | Question: 13
Let $n$ be an odd number greater than $100$. Consider a binary minheap with $n$ elements stored in an array $P$ whose index starts from $1$.Which of the following indices...
gatecse
1.7k
views
asked
Feb 23
Algorithms
gatecse-2026-set1
algorithms
binary-heap
multiple-selects
one-mark
+
–
1
1 vote
1
1 answer
496
496 views
GATE CSE 2026 | Set 1 | Data Structures | Memory Based | Question 35
Consider a min heap containing $n$ elements represented as an array, where $n>100$ and $n$ is odd.Assuming $1$-based indexing, which of the following cannot be the index ...
GO Classes
496
views
asked
Feb 12
Data Structures
goclasses
gate2026_cs_set1_memorybased
data-structures
binary-heap
multiple-selects
two-marks
+
–
0
0 votes
1
answers
1 answer
351
351 views
No. of heap Data Structures.
manas_pant
351
views
asked
Nov 20, 2025
Algorithms
binary-heap
data-structures
algorithms
made-easy-test-series
one-mark
normal
+
–
1
1 vote
0
0 answers
221
221 views
NIELIT Scientific Assistant June 2025 | Question: 99
Which of the following is the primary property of a binary heap?The parent node is greater than its children (max-heap).The parent node is less than its children (min-hea...
Shubham Sharma 2
221
views
asked
Jul 24, 2025
Data Structures
nielit-sta-2025
binary-heap
data-structures
+
–
2
2 votes
1
1 answer
209
209 views
NIELIT Scientific Assistant June 2025 | Question: 107
Which of the following operations can be performed in $\mathrm{O}(\log n)$ time in a binary heap?Deleting the root elementInserting an elementBoth $\text{(A)}$ and $\text...
Shubham Sharma 2
209
views
asked
Jul 24, 2025
Data Structures
nielit-sta-2025
binary-heap
data-structures
time-complexity
sorting
+
–
0
0 votes
1
1 answer
391
391 views
GO Classes Test Series 2025 | NIELIT Mock Test 1 | Question: 79
If the largest value in a max-heap is in the root node and the second-largest value is in the root's right child, what will be the number of positions where the fourth-la...
GO Classes
391
views
asked
May 5, 2025
Others
goclasses2025-nielit-mock-1
goclasses
one-mark
data-structures
binary-heap
+
–
1
1 vote
1
1 answer
358
358 views
GO Classes | IIITH PGEE 2026 Mock Test 12 | Question: 90
If the largest value in a max-heap is in the root node and the second-largest value is in the root's right child, what will be the number of positions where the fourth...
GO Classes
358
views
asked
Mar 20, 2025
Data Structures
goclasses2026-iiith-mock-12
goclasses
one-mark
data-structures
binary-heap
+
–
Page:
1
2
3
4
5
6
...
12
next »