Pergunta de entrevista da empresa Papaya

Transpose a 2D matrix and print them using Arrays util

Resposta da entrevista

Sigiloso

7 de abr. de 2020

val trans = Matrix(cols) { Vector(rows) } for (i in 0 until cols) for (j in 0 until rows) trans[i][j] = this[j][i]