wzr1005 / wzr1005.github.io

0 stars 0 forks source link

堆路径的输出与判别 | Light of the Seven's blog #6

Open wzr1005 opened 5 years ago

wzr1005 commented 5 years ago

https://wzr1005.github.io/2019/03/27/%E5%A0%86%E8%B7%AF%E5%BE%84%E7%9A%84%E8%BE%93%E5%87%BA%E4%B8%8E%E5%88%A4%E5%88%AB/#more

1155 Heap Paths 这道题属于简单题,建树,打印叶子结点,以及判断是否是堆,以及是大顶堆还是小顶堆 建树只需要层次遍历, 打印叶子结点题目要求从右往左 vector压入因此大致是