Counting Inversions Problem
Filed under MyKaarma
The question
Count the number of inversions in an array. Candidate provided O(n*n) then O(nlogn) using merge sort.
No write-up yet. Related questions below have one.
Related MyKaarma questions
Collected from public candidate posts and coding forums. Updated Nov 2026.