摘要:
#include #include void heaplify(int *arr, int len, int pos){ int left = pos * 2 + 1; int right = pos * 2 + 2; int max = 0; int temp = 0; if( left arr[pos]) { max = left; } else { max = pos; } if( right arr[max]) { max = right; } if... 阅读全文
posted @ 2014-03-29 23:39
KingsLanding
阅读(465)
评论(0)
推荐(0)
浙公网安备 33010602011771号