Solución
solution.tsTypeScript
public class Solution {
public int[] invertirArray(int[] numbers) {
if(numbers.length == 0) return numbers;
int[] newArray = new int[numbers.length];
int count = 0;
for(int i = numbers.length-1; i >= 0; i--){
newArray[count] = numbers[i];
count++;
}
return newArray;
}
}0respuestas