What is the complexity of adding an element to the heap?
Answer / Mohd.asif
Adding an element to a binary heap follows a time complexity of O(log n), assuming a complete binary tree.
| Is This Answer Correct ? | 0 Yes | 0 No |
How many types of linked list are there?
Explain the common uses of tree database.
How will you sort the elements of array in descending order?
what is atmost complete binary tree?
Why is data structure important?
What is a vector element?
What is the difference between adt and data structure?
What is the difference between data types and data structures?
Define the tree data structure.
Can a class have a constructor?
Differentiate between an array and an arraylist.
What is a treeset?