leetle

Daily challenge for 2025-10-04

277. Transpose Matrix

Given a 2D array matrix, return the transpose of the matrix.

Example:
Input: matrix = [[1,2,3],[4,5,6],[7,8,9]]
Output: [[1,4,7],[2,5,8],[3,6,9]]

Run this challenge interactively in Python or JavaScript when the app loads.