Search
⌘K

Leetcode 1424. Diagonal Traverse II

Return the elements of a possibly jagged 2D array in diagonal (anti-diagonal) order, where cells on the same diagonal share the same i+j value and diagonals are output by increasing i+j. The key challenge is grouping elements by diagonal index and preserving the required within-diagonal ordering while handling irregular row lengths.

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid February, 2025

Meta

Mid-level

Late January, 2025

Meta

Senior

Traverse characters in 2D array in reverse diagonal (variant of LeetCode 490)

Late January, 2025

Meta

Senior

Traverse characters in 2D array in reverse diagonal (variant of LeetCode 490)

Comments

Your account is free and you can post anonymously if you choose.