r/AskComputerScience • • Jan 20 '26
Correct Binary Heap
for an array [1,2,3,4,5] which is the correct heap?
a. 1->(2, 3), 2->(4,Empty), 3->(5,Empty)
b. 1->(2,3), 2->(4,5), 3
0
Upvotes
r/AskComputerScience • • Jan 20 '26
for an array [1,2,3,4,5] which is the correct heap?
a. 1->(2, 3), 2->(4,Empty), 3->(5,Empty)
b. 1->(2,3), 2->(4,5), 3
View all comments
Show parent comment
1
u/[deleted] Jan 20 '26
my bad, I edited the comment