Nuacht
Rotate a matrix by 90o in Java Method 1 : First transpose the matrix. For this run a loop from i=0 to n and another loop from j=i+1 to j After doing this, now iterate over rows and reverse each rows.
Cuireadh roinnt torthaí i bhfolach toisc go bhféadfadh siad a bheith dorochtana duit
Taispeáin torthaí dorochtana