Advertisement
thienlang

Array

Jan 14th, 2014
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Mảng ban đầu A ( M x N )
  2.  
  3. 1. Mảng  chuyển vị B ( N x M )
  4. i: [0-> N);
  5. j: [0-> M);
  6. B[i][j] = A[j][i];
  7.  
  8. 2. Mảng Quay Phải C ( N x M )
  9. i: [0 -> N)
  10. j: [0 -> M)
  11. C[i][j] = A[M - j - 1][i];
  12.  
  13. 3. Mảng Quay Trái D ( N x M )
  14. i: [0-> N)
  15. j: [j-> M)
  16. D[i][j] = A[j][N-i-1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement