Problem of the day
Given an array, update each element of the array by the value obtained by dividing the element by 4 (take only integer part). If the value obtained by dividing element by 4 comes out to be 0, then update element with value -1.
Note : Do not return or print array and make changes in same array.Line 1 : An Integer N i.e. size of array
Line 2 : N integers which are elements of the array, separated by spaces
Output Format :
N elements of array, separated by space
1 <= N <= 10^6
2
3 8
-1 2