Daily challenge for 2025-03-03
62. Spiral Matrix
Write a function solve that returns all elements of an m x n matrix in spiral order.
Example:Input: [[1,2,3],[4,5,6],[7,8,9]]Output: [1,2,3,6,9,8,7,4,5]
Run this challenge interactively in Python or JavaScript when the app loads.