You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Solution {
public void reverseArray(int arr[]) {
// code here
int j=arr.length-1;
int k=arr.length-1;
int temp=0;
for(int i=0;i<=j/2;i++)
{
temp=arr[i];
arr[i]=arr[k];
arr[k]=temp;
k--;
}
}
}