Please enter your email address or userHandle.
Given a Matrix of size M x N. Your task is to print the matrix K times left rotated.
First line consists of T test cases. First line of every test case consists of 3 integers, M, N, K. Second line of every test case consists of M*N spaced integers.
Single line output, print the M*N spaced integer rotated K times.
2 2 1
1 2 3 4
2 1 4 3
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.