Sleek-Code
Sleek pieces of code that do things efficiently or interestingly
- swap.cpp: Swaps the two int/long/any numerical values using the XOR operation. It doesn't require memory to declare another variable, but does the swap in constant time. Pros and Cons are here: http://en.wikipedia.org/wiki/XOR_swap_algorithm