Amazon interview question

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

Interview Answers

Anonymous

28 Oct 2018

Circular buffer

Anonymous

11 Feb 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