Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
Define tree height. How does it impact complexity?
Think about how long paths might require more steps.
What is a max heap?
Consider who has the highest value in this structure.
Where is the maximum value located in a max heap?
Recall what makes a max heap different from other trees.
True or False: The height of a tree influences the time complexity of its operations.
Consider the path length when performing operations.
Given a max heap, how would you determine its height? Provide a theoretical basis for your approach.
Consider how each level doubles the number of nodes added.
Implement a function that constructs a min heap from a list of unsorted values. Outline your approach including time complexity.
What happens to leaf nodes in this process?
5 more questions in this section. Enroll free to practise them all.
Enroll free