Examveda

Consider a sequence of numbers to have repetitions, how a cartesian tree can be constructed in such situations without violating any rules?

A. use any tie-breaking rule between repeated elements

B. cartesian tree is impossible when repetitions are present

C. construct a max heap in such cases

D. construct a min heap in such cases

Answer: Option A


This Question Belongs to Data Structure >> Binary Search Trees(B Tree)

Join The Discussion

Related Questions on Binary Search Trees(B Tree)