No need to modify the array in place