Rotating an encoded 3x3 matrix/list

前端 未结 0 631
感情败类
感情败类 2020-12-06 21:53

Let\'s say there is an encoded 3x3 plane:

1 2 3   
4 5 6  
7 8 9  

After a clockwise rotation, it becomes:

7 4 1
8 5 2
9 6 3
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题