Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mảng ban đầu A ( M x N )
- 1. Mảng chuyển vị B ( N x M )
- i: [0-> N);
- j: [0-> M);
- B[i][j] = A[j][i];
- 2. Mảng Quay Phải C ( N x M )
- i: [0 -> N)
- j: [0 -> M)
- C[i][j] = A[M - j - 1][i];
- 3. Mảng Quay Trái D ( N x M )
- i: [0-> N)
- j: [j-> M)
- D[i][j] = A[j][N-i-1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement