Ad
  • Custom User Avatar

    I'm sorry for causing you trouble.
    “Each matrix will be represented by an array with a length of 4, which is the element order of the matrix from left to right and from top to bottom”
    Each array is a matrix, such as [a, b, c, d] is matrix

    a b
    c d
    

    Matrix can be rotated

    a b   90 degrees  c a  180 degrees  d c  270 degrees  b d
    c d  -----------> d b  -----------> b a  -----------> a c
    

    ”If matrix A can be obtained by rotating matrix B clockwise by 0, 90, 180 or 270 degrees, we think that A and B are the same matrix.“

    Can you tell me where you are confused and provide some suggestions for modification? Thank you