0

Matrix

It is a good way to roratate matrix? https://code.sololearn.com/cIQ4zXG8EW7b/?ref=app

24th Mar 2019, 11:54 AM
Khai123
Khai123 - avatar
4 Réponses
+ 1
No, because you haven't rotated the matrix, only printed a rotated matrix. The simplest is as follow https://code.sololearn.com/cjYzYN62u97T/?ref=app
24th Mar 2019, 12:18 PM
Louis
Louis - avatar
+ 1
Khai123 No, it is not the same, you do not end up with a variable that contains the rotated matrix. In other words you can't use the rotated matrix for any other calculation. You have only printed it to the screen.
24th Mar 2019, 12:32 PM
Louis
Louis - avatar
0
I think I did the same way:)))
24th Mar 2019, 12:23 PM
Khai123
Khai123 - avatar
0
Oh, Im sr. I think that using nested loop is the right way to do it.
24th Mar 2019, 12:33 PM
Khai123
Khai123 - avatar