Solución
solution.tsTypeScript
def flatten(nested_arrays: list[list[int]]) -> list[int]:
# Escribe tu solución aquí
flattened = []
for i in range(len(nested_arrays)):
for j in nested_arrays[i]:
flattened.append(j)
return flattened0respuestas