← Quiz: Heaps and Heap Sort Internals: all 15 questions
Quiz: Heaps and Heap Sort Internals · Question 2 of 15
What is the parent index of the node at index 6?
What is the parent index of the node at index 6?
- A.3
- B.1
- C.2
- D.4
Answer & explanation
Correct answer: 2
(6 − 1) // 2 = 2. Index 5 also has parent 2.
Can you get the rest right without peeking?
Take the timed Quiz: Heaps and Heap Sort Internals quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →