Here is a repository where I store some codes with total beauty, that give us conciseness and insight.
Brief codes below.
- Copy string C
- Check odd C, C++, Javascript, Python
- Swap Two numbers C, C++, Javascript, Python
while( *s++ = *t++ );if ( num & 1 )if ( num & 1 )if ( num & 1 )if num & 1:a^=b^=a^=b;a^=b^=a^=b;a^=b^=a^=b;a = a ^ b
b = b ^ a
a = a ^ b