Reverse array of elements without using additional memory.
Anonymous
Brute force solution with swap will take O(1) additional memory, so I wrote my own swap function without additional memory using simple arithmetic.
Check out your Company Bowl for anonymous work chats.