Pergunta de entrevista da empresa Smarkets

Reverse an array.

Resposta da entrevista

Sigiloso

19 de abr. de 2018

Did it in O(n) without an additional data structure. Loop through half of the array and use a temp variable to swap values.