LeetCode - Spiral Matrix
Problem statement
Given an m x n matrix, return all elements of the matrix in spiral order.
Problem statement taken from: https://leetcode.com/problems/spiral-matrix
Example 1:
Input: matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
Output: [1, 2, 3, 6, 9...
alkesh26.hashnode.dev5 min read