bugl
Home
Learn
Patterns
Paths
Search
Premium
Auto
Home
Learn
Patterns
Paths
Medium
Math & Geometry
LC 498
Diagonal Traverse
Given an m x n matrix mat, return an array of all the elements of the array in a diagonal order.
Asked at 8 companies
Amazon
Apple
Ebay
+5 more
Hints
1.
Think about which data structure fits best
2.
Consider the time complexity of your approach
3.
Look for patterns in the constraints
Start Puzzle
LeetCode