The Gateway to Computer Science Excellence
0 votes
Is the array with values $23,17,14; 6,13,10,1,5,7,12$ a max-heap ?
in Algorithms by Boss (41.9k points)
reshown by | 33 views
Max-heap property is failing at node no. 8

1 Answer

0 votes
no,  max heap is not possible bcoz it is failing the property at node 8 insertion time.  but if we are implementing it by array then there is basic fault in question bcoz in array data type should be similar here .6 is given which is float type.
by Junior (743 points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,563 answers
101,654 users