coder_life
Construct an array that satisfies the inequality
Construct an array that satisfies the inequality The construction length isNNInteger array of Narrarra r r , so that for anyi<j<ki<j<ki<j<k , there is arr[i]+arr[k] 2arr[j]arr[i]+arr[k]\neq 2arr[j]a r r [ i ]+a r r [ k ] =2 a r r [ j ] answer Ideas When the length of the array is 1, any array satisfies the condition, the same is true when the length is 2, for example, an array[1,2][1, 2][ 1 ,2 ] , then we can think about whether we can start from this short array and construct