impl Solution { pub fn transpose(matrix: Vec>) -> Vec> { let n = matrix[0].len(); (0..n).into_iter() .map(|i| matrix .iter() .map(|row| row[i]) .collect() ) .collect() } }