checking if a min heap array is valid

前端 未结 0 938
滥情空心
滥情空心 2021-01-30 10:09

I have this function def validate(self) which should check if a given array is a valid min heap. I think it works but because my arrays have None at the beginning like [None, 2,

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