資料結構›Ch7 搜尋與排序
第 12 題/共 76 題
◀ DS 12/76
12. Min Heap、驗證演算法
#DS-07-012易Min Heap驗證演算法

Please write a pseudocode function to achieve the following task: Given a binary tree stored in an array (heap) as the input, check if it is a min-heap or not. Your function must return a Boolean value as the output (true: the input is a min-heap; false: the input is not a min-heap).

📄 台大112
跳轉到第題
▤完整推導請見《WH 資工筆記 · 資料結構》Ch7 搜尋與排序
本章題號 · 1–20 / 76