← 返回 uber 的题目列表Generate New Array Based on Adjacent Elements
类型:online_judge
Given an integer array array, generate a new integer array output based on the relationship of adjacent elements. For each pair of adjacent elements array[i] and array[i+1], the output array contains some calculated result related to these elements. Please complete this question based on your understanding.
Example
Input
5
1 3 5 7 9