In-place swap
In-place swap

In-place swap is just a logic trick used to swap a content of two distinct variables without any temporary storage variable.