对于如下图所示的最大堆,删除掉最大的元素后,堆的后序遍历结果是For the following maximum heap, after deleting the maximum element, the post order traversal sequence is[img=387x212]1802faee53d86da.png[/img]
举一反三
- 对于如下图所示的最大堆,删除掉最大的元素后,堆的后序遍历结果是For the following maximum heap, after deleting the maximum element, the post order traversal sequence is[img src="https://www.chinesemooc.org/attachment/homework/pic/20151022/2367/38203181445480591.png"]
- 对于最大堆64,42,58,23,36,47,56,11,22,27,4,2;删除掉最大元素后,调整后堆中元素为: A: 56,42,58,23,36,47,2,11,22,27,4 B: 58,42,56,36,23,47,2,11,22,27,4 C: 58,42,56,23,36,47,11,2,22,27,4 D: 58,42,56,23,36,47,2,11,22,27,4
- 遍历如下二叉树,先序遍历结果序列(),中序遍历结果序列(),后序遍历结果序列()。[img=430x410]17e0c7eb0edddd8.png[/img]
- If A is a matrix, the function of the function max(a(:)) is ( ). A: to work out the maximum element of the entire matrix B: function call errors C: to work out the maximum element of each row of the matrix D: to work out the maximum element of each column of the matrix
- If A is a matrix, the function max(A(:)) is ( ). A: to return the first element B: to return the maximum element in each row of the matrix C: to return the maximum element in each column of the matrix D: to return the largest element of the entire matrix