the set of alternate positive and negative numbers. * If a set of Positive values in `C' column then the maximum and minimum values to be plotted in Cells G (From Column A) & Cells H (From Column B) * If a set o
整数アレイを指定して、交互の位置に正と負の数が含まれるように再配置します。アレイに正または負の要素がさらに含まれている場合は、それらをアレイの最後に移動します。アレイ内のすべての値がゼロ以外であると想定します。 例えば、 Input: { 9, -3, 5, -2, -8, -6, 1, 3 } ...
Input:{ 9, -3, 5, -2, -8, -6, 1, 3 } Output:{ 5, -2, 9, -6, 1, -8, 3, -3 } Input:{ 9, -3, 5, -2, -8, -6 } Output:{ 5, -2, 9, -6, -3, -8 } Input:{ 9, -3, 5, -2, 8, 6, 1, 3 } ...