notes list[ ]flag truej iwhile( < &flagif(( &(list[jlist[ ]) if( >list[ ]flag falseelse list[ div list[ ] list[ div kvoid build_initial_heap(list xint nint ifor( div > --adjust(xin)void heapsort(list xint nint ibuild_initial_heap(xn)for( -li > --exchange(list[ ]list[ + ])adjust(xli)void exchange(int &aint &bint tt * * * * tlovely professional university