Vidyalelo
Data Structure · Q157

Heaps

Programming · Data Structure · question 157

Q157

What is the time complexity for creating a ternary heap using swapping?

A.
O (log n/ log 3)
B.
O (n!)
C.
O (n)
Answer
D.
O (1)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board