im trying to do a heap bottom up construction from Psuedo code from my text book however the output im getting is not a correct heap im getting out 2 9 8 6 5 7
outofrangeexception
exfat
dcu
swift-playground
frama-c
examine
cwd
polyfills
kivy-language
bar-chart
movieclip
dataformat
superpixels
uipath-apps
perl-tidy
humanizer
pyright
react-popper
singleton-methods
dbus-python
nsuseractivity
poco-libraries
hlint
power-law
dynamic-variables
cordova-plugin-purchase
polygons
lima-vm
cortex-m0
django-3.2