swap(matrix[b][b+i], matrix[e][e-i]); swap(matrix[b][b+i], matrix[e-i][b]); } ++b; --e; } } }; ``` [source link](https://leetcode.com/problems/rotate-image/discuss/) [上一级](base.md) [上一篇](romanToInt.md) [下一篇](same_tree.md) 3 changes: 2 additions ...