Question d’entretien chez Yandex

Reverse array of elements without using additional memory.

Réponse à la question d'entretien

Utilisateur anonyme

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