code-chronicles-code / code-chronicles-code/leetcode-curriculum

Add a `transpose` Java goody

オープン
#221 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement java
主要言語
TypeScript
スター
20
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm thinking it would be neat to make this "lazy", i.e. have it backed by the same data as the original.

A possible API:

```java
int[][] matrix = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
List> transposedMatrix = transpose(matrix);

System.out.println(transposedMatrix); // should print [[1, 4, 7], [2, 5, 8], [3, 6, 9]]
```

The implementation could use the `VirtualList` goody to achieve this effect.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。