import java.util.ArrayList; public class Solution { // 方法一: 暴力双重循环---O(N^2) public int[] multiply(int[] A) { int[] B = new int[A.length]; for (int i = 0; i < A.length; i++) { int temp = 1; for (int j = 0; j < A.length; j++) { if (...