A derangement is a specific type of permutation of a set of elements where none of the elements appear in their original position. In other words, if you have a set of objects and wish to rearrange them such that no object remains in its initial position, that arrangement is referred to as a derangement. For example, consider the set of objects {1, 2, 3}.
New to topics? Read the docs here!