Word inversion number

ID: word-inversion-number

The number of inversions of a word: pairs of positions with . Unlike an inversion of a permutation, this definition permits repeated letters in the word.

New to topics? Read the docs here!