• 2022-06-03
    Given the array [34, 3, 10, 27, 6, 22, 9], suppose a max heap is built in linear time. The max heap is ______ .
  • 34,27,22,3,6,10,9

    举一反三

    内容

    • 0

      max([1,2,3]*2)和len([1,2,3]*2)的结果分别是() A: 4  3 B: 6  6 C: 3  6 D: 12  3

    • 1

      下列语句执行后,D的值为()。A=[1:3,7;4:6,-56;34,23,56,-45;4,2,4,5];D=max([A(3),A(6),A(8),A(11)]) A: 34 B: 5 C: 2 D: 56

    • 2

      Obtain numerical values for the maximum tensile stress (\(\sigma^+_\max\), in MPa) in the beam, and for the coordinates (\( x_\max,\ y_\max, \) in m) where \( \sigma^+_\max \) occurs:<br/>\&#91; y_\max = \&#93;<br/>\&#91; x_\max = \&#93;<br/>\&#91; \sigma^+_\max = \&#93;<br/>______

    • 3

      int a=6,b=3,c=9,max;max=(a>;b?a:b)>;c?(a>;c):b;cout<;<;max;输出结果值max = _____________。

    • 4

      给定多维数组arr,arr = &#91;&#91;1, 2, 3&#93;, &#91;4, 5, 6&#93;, &#91;7, 8, 9&#93;&#93;则np.mean(arr,axis=0)输出为 A: array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) B: array([4., 5., 6.]) C: array([2., 5., 8.]) D: array([1., 5., 8.])