Question discussion

What is the worst-case time complexity of building a heap from an unsorted array of n elements using the bottom-up heapify approach?

567Medium DSSSB TGT Computer Science 0 replies 1 views
0
What is the worst-case time complexity of building a heap from an unsorted array of n elements using the bottom-up heapify approach?
  • AO(n log n)
  • BO(n²)
  • CO(n)
  • DO(log n)
Correct answer: C

Discussion 0

Nobody has replied yet. Start the discussion!