Azienda coinvolta
Rotate a 2D matrix in linear time.
Anonimo
You can't, you have to touch all the elements once, so it has to be n^2 time at least.
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.