498
-
[LeetCode] 498. Diagonal TraverseLeetCode 2021. 11. 17. 13:28
https://leetcode.com/problems/diagonal-traverse/ Diagonal Traverse - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Diagonal Traverse - Medium m x n 행렬에 수가 적혀있을때, 이 행렬을 위 그림과 같이 대각선방향 지그재그로 방문해 방문 순서대로 수를 출력하는 문제다. 일단 시작점은 우상향방향이고, 그 다음은 좌하향, 그 다음은 또 우상향, ... 으로 반복이 된다. 이를 수식으로 나타..