Atlassian Interview Question

Reverse a int[] array in place

Interview Answers

Anonymous

Oct 31, 2018

have a startIndex and endIndex. Swap the elements at these indices, increment startIndex, decrement endIndex, and repeat this process again until startIndex > endIndex

Anonymous

Oct 16, 2019

This looks so good: bit.ly/faang100