I\'m studying heap & heap sorting. There is a array : arr[8] = {6,9,3,1,8,7,2,11} When I\'m trying to build the heap, using code and pencil, I face
arr[8] = {6,9,3,1,8,7,2,11}
That's correct. The heap constraint (which is that children are not greater than their parents) does not completely specify the heap, so there is usually more than one possible arrangement.