code-chronicles-code / code-chronicles-code/leetcode-curriculum
Add a `transpose` Java goody
- 主要语言
- 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.
贡献指南
调研方向
Start by locating the Java goodies and the existing VirtualList implementation. Compare its lazy backing behavior with the proposed transpose(matrix) API and use the 3×3 example as the expected result. Done means the API returns the transposed view while preserving the requested lazy relationship to the original data.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100