Skip to content

Commit 82bfa6b

Browse files
authored
Update 0493-reverse-pairs.md
1 parent fc0cf49 commit 82bfa6b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

dsa-solutions/lc-solutions/0400-0499/0493-reverse-pairs.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
---
22
id: reverse-pairs
33
title: Reverse Pairs
4-
sidebar_label: 0493 - Reverse Pairs
4+
sidebar_label: 493-Reverse-Pairs
55
tags:
6-
- Leetcode
6+
- Array
7+
- Binary Search
8+
- Divide and conquer
9+
- Binary Indexed Tree
10+
- Segment Tree
711
- Merge Sort
12+
- Ordered Set
13+
description: The problem is to reverse the pairs.
14+
sidebar_position: 2667
815
---
916

1017
## Problem Statement
@@ -204,6 +211,7 @@ class Solution:
204211
public int reversePairs(int[] nums) {
205212
return mergeSort(nums, 0, nums.length - 1);
206213
}
214+
207215
public int mergeSort(int[] nums, int left, int right) {
208216
if (left >= right) {
209217
return 0;

0 commit comments

Comments
 (0)