Pergunta de entrevista da empresa Yandex

Reverse array of elements without using additional memory.

Resposta da entrevista

Sigiloso

5 de set. de 2017

Brute force solution with swap will take O(1) additional memory, so I wrote my own swap function without additional memory using simple arithmetic.