Reverse array eficiently.
Anonymous
Loop half size of the array exchanging element i with element (size-i-1). If array size is odd number than half is (size -1)/2. However, you can just do size/2 -- integer division would give above, so 15/2 = 7.
Check out your Company Bowl for anonymous work chats.