Transforming 2d matrix 90 deegrees clockwise in a better way - PHP?

前端 未结 0 975
陌清茗
陌清茗 2021-02-06 02:01

I tryed to do something like this:

 function rotate90($mat) {
        $n = count($mat);
        $m = count($mat[0]);
        $mat90=array();
        
    for ($i          


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