C++ Python C速解Leetcode 344 Reverse String
-----
So swap the pairs of index (i, n-1-i). In the implementation by C, swap doesn't use extra space just by xor!
[codes on Leetcode]https://leetcode.com/problems/reverse-string/solutions/5242835/easy-swap-pairs-swap-using-xor-1-liner/
沒有留言:
張貼留言