How do binary heaps determine their parent if it involves a half (i.e. 1.5)?

后端 未结 0 585
[愿得一人]
[愿得一人] 2021-02-07 04:31

I am learning about Binary Heaps and I understand that to get the left child the formula is (2 x index)+1 and to get the right child is (2 x index)+2. That makes sense to me bu

相关标签:
回答
  • 消灭零回复
提交回复
热议问题