Search
⌘K

Leetcode 2175. The Change in Global Rankings

Given the original and updated global rankings of the same set of participants, determine how much the ranking changed by measuring flipped relative orders (i.e., how many pairwise orderings differ). This reduces to mapping one permutation to the other and counting inversions efficiently (typically with a Fenwick tree or divide-and-conquer) for large n.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.