0
Can you write a java code without an extra array to reverse an array?
Reverse array 'a' without the help of another array 'b'.
3 Respostas
+ 9
// It's too simple, actually. There's no need to burst out your mind :D
int a[] = {9, 4, 6, 0, 7};
for(int i = a.length-1; i >= 0; i--)
{
System.out.print(a[i]+" ");
}
+ 5
Well you typed without the use array 'b'
But I use ram array instead
https://code.sololearn.com/cbtt8UJziO1J/?ref=app
*Yawnnn*
Why Java is not funnier than Assembly like this?