Interview Question

Junior Software Developer Interview

-Toronto, ON

FDM Group

Given an array, reverse it without using any other array. Explain your approach.

Answer

Interview Answers

2 Answers

0

int[] arr= {1,5,6,7,8,6,5,2,4,9}; int lastIndex = arr.length-1; for(int i =0; i

Anonymous on

1

int[] arr= {1,5,6,7,8,6,5,2,4,9}; int lastIndex = arr.length-1; for(int i =0; i

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.