We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3716970 commit 487d1faCopy full SHA for 487d1fa
README.md
@@ -45,6 +45,8 @@ Step 2. Add the dependency
45
46
<summary>展开查看</summary>
47
48
+https://leetcode.cn/problems/transpose-matrix/
49
+
50
https://leetcode.cn/problems/divide-array-in-sets-of-k-consecutive-numbers
51
52
https://leetcode.cn/problems/hand-of-straights
transpose-matrix/index.ts
@@ -0,0 +1,5 @@
1
+import { zip } from "../deps.ts";
2
3
+export default function transpose(matrix: number[][]): number[][] {
4
+ return zip(...matrix) as number[][];
5
+}
0 commit comments