✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Egészítsd ki a kódot, hogy az egy elem kupacba való helyes beszúrását adja meg!
HEAP-INSERT(A,key) heap-size[A] := heap-size[A] + 1 i := heap-size[A] A[i] := key