0498. 对角线遍历 #15
Replies: 4 comments
-
|
不需要方向管理的,我感觉更简单理解: |
Beta Was this translation helpful? Give feedback.
-
|
1 如果在最后一列,则向下方移动,即 x += 1。 |
Beta Was this translation helpful? Give feedback.
-
|
"其余情况想右上方向移动" 原文中有笔误“想(向)” |
Beta Was this translation helpful? Give feedback.
-
|
也可以把对角线数量算出来,再算上每个对角线的起点位置就容易点 class Solution: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
0498. 对角线遍历
https://algo.itcharge.cn/solutions/0400-0499/diagonal-traverse/
Beta Was this translation helpful? Give feedback.
All reactions