How did count inversion come into play?

Revision en1, by krish2004, 2024-07-12 21:23:37

https://mirror.codeforces.com/contest/1983/problem/D

In this problem. Count inversion concept comes into play but why ?? What is the exact intuition behind it? Like why only count inversion. and what are the other type of problems where this concept is used.

Tags greedy, divide and conquer

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English krish2004 2024-07-12 21:23:37 294 Initial revision (published)