Pregunta de entrevista de Yandex

Reverse array of elements without using additional memory.

Respuesta de la entrevista

Anónimo

5 de sept 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.