MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / reversePairs

Method reversePairs

493. Reverse Pairs/Solution.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44
45 int reversePairs(vector<int>& nums) {
46 if (nums.size() <= 1) return 0;
47 n.assign(nums.begin(), nums.end());
48 mergeSort(0, nums.size());
49 return rev_pair;
50 }
51};
52
53int main() {

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected