A left rotation operation on an array shifts each of the array's elements unit to the left. For example, if left rotations are performed on array , then the array would become . Given an array of ...
The first line contains two space separated integers, N and M. The next N lines contains M space separated integers of array . The following N lines contains M space separated integers of array B.