Count reverse pairs in two individually sorted parts of an array

mediumLast edited: October 12, 2025