← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Given an integer array, return a new array where each element is the sum of the element at the same position and the next element in the original array. For the last element, add it to the first element (circular).
Write a solution in Python or Go.