Loading...
Engaged employer
How to reverse a string without using extra memory?
Anonymous
I have never heard of it before that time. I think there are some answers on the web about it
Print recursively..
public void reverse(char s[]){ for(int i=0,j=s.length-1;i<=j;i++,j--){ s[i] ^= s[j]; s[i] ^= (s[j] ^= s[i]); } }
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.