employer cover photo
employer logo

Pergunta de entrevista da empresa Altera

print the matrix in spiral order

Resposta da entrevista

Sigiloso

15 de abr. de 2012

First write a function to print outer side of the matrix, then find out the inner matrix and use the same function to compute its outer side. By recursively doing this you can get matrix in spiral order.

1