---
title: "Discussion on \"3507. Minimum Pair Removal to Sort Array I\" | Hashnode"
description: "Discussion on \"3507. Minimum Pair Removal to Sort Array I\". class Solution:\n    def minimumPairRemoval(self, nums: List[int]) -> int:\n\n        def checkSorted(arr):\n            return arr == sorted(arr)\n\n\n        def findAndMerge(arr):\n            minSum = float(\"inf\")\n            trackIndex = -1\n\n           ..."
url: "https://hashnode.com/posts/3507-minimum-pair-removal-to-sort-array-i/697435b8fe02f78c715b072b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [3507\. Minimum Pair Removal to Sort Array I](https://tapanrachchh.hashnode.dev/3507-minimum-pair-removal-to-sort-array-i?utm_source=hashnode&utm_medium=feed)

class Solution: def minimumPairRemoval(self, nums: List\[int\]) -> int: def checkSorted(arr): return arr == sorted(arr) def findAndMerge(arr): minSum = float("inf") trackIndex = -1 ...

Jan 24 · 1 min read · tapanrachchh.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Tapan Rachchh](https://hashnode.com/@tapanrachchh)

@tapanrachchh

  
[View profile](https://hashnode.com/@tapanrachchh)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
