Amazon Interview Question

Given an array, write a program to right shift the array for certain steps.

Interview Answers

Anonymous

Oct 28, 2018

Circular buffer

Anonymous

Feb 11, 2021

#include int givenarray[10] = {0,1,2,3,4,5,6,7,8,9}; void rightShiftArray(int* array,int arrayLenght,int numberOfRightShift){ int tempItem=0; for(int iShift = 0;iShift