LeetCode: Transpose a Matrix
Problem:
https://leetcode.com/problems/transpose-matrix/description/
Code:
class Solution:
def transpose(self, matrix: List[List[int]]) -> List[List[int]]:
"""
rows<-->cols (Transpose)
"""
return [list(row) for row...
is-power-of-two.hashnode.dev1 min read