+ 2

Matrix Rotation - how to improve the code

What can I improve with this code: https://code.sololearn.com/cuJPKz425K5j/#py Open for any suggestions :)

15th Oct 2018, 1:38 PM
Bartek Sobura
Bartek Sobura - avatar
2 Respostas
+ 2
Very good Job. With the Numpy Module you can manipulate multidimensional Arrays more easy. But I think ist's always good to find an own Solution to understand the Concept behind. In this Code I used Numpy to rotate a Matrix: https://code.sololearn.com/cc6cM7kQqQrM/?ref=app
16th Oct 2018, 5:38 PM
Sebastian Keßler
Sebastian Keßler - avatar
0
Thanks for comment. It was my intention not to use numpy to try handle the problem. But I think i didn't get the right way to avoid the aliasing in lmatrix, rmatrix variables. However code works :)
16th Oct 2018, 7:30 PM
Bartek Sobura
Bartek Sobura - avatar