Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Thursday, January 23, 2020

Given the set of keys ( 40, 80, 35, 90, 45, 50, 70 ), which

Given the set of keys ( 40, 80, 35, 90, 45, 50, 70 ), which of the following represents a heap ? ( Each pair of parentheses indicate nodes at one level, left child first)
A( ( 90 ) ( 40 - 80 ) ( ( 35 - 70 ) - ( 45 - 50 ) ) )
B( ( 80 ) ( 90 - 70 ) ( ( 40 - 45 ) ( 35 - 50 ) ) )
C( ( 90 ) ( 80 - 70 ) ( ( 40 - 45 ) ( 35 - 50 ) ) )
D( ( 70 ) ( 80 - 90 ) ( ( 50 - 45 ) ( 40 - 35 ) ) )

Post your answers here:

Post

Post your comments here:

Post

Categories