Query on binary heap


#1

how many Binary Max-Heaps can be constructed from the elements {1,1,2,2,3,3,4,4} ?


#2

ans) 0

explanation-> parent needs to be strictly greater than child, which would be violated by 4,4 initially only.