lemme give u a hint..
u know how to swap variables without a temp variable?
a, b r the ints..
a=aXORb
b=bXORa (b XOR (a XOR b)) = a
a=aXORb ((a XOR b) XOR a) = b !
if strlen is n then every 'i'th character goes to (n-i) position?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.