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

Add a `transpose` Java goody

Abierto
#221 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement java
Lenguaje dominante
TypeScript
Estrellas
20
Forks
12
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.