Listas piramidales
Dado un entero positivo n, devuelve un arreglo de filas numeradas del 1 al n. La fila i contiene i copias del número i.
Ejemplos
Program.pyramidLists(1) ➞ new int[][]{new int[]{1}}
Program.pyramidLists(3) ➞ new int[][]{new int[]{1}, new int[]{2, 2}, new int[]{3, 3, 3}}
Program.pyramidLists(5) ➞ new int[][]{new int[]{1}, new int[]{2, 2}, new int[]{3, 3, 3}, new int[]{4, 4, 4, 4}, new int[]{5, 5, 5, 5, 5}}Notas
nes un entero positivo.