---
title: "Tapan Rachchh (@tapanrachchh) | Hashnode"
description: "Tapan Rachchh (@tapanrachchh) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@tapanrachchh"
---

@tapanrachchh

# Tapan Rachchh

@tapanrachchh · Joined April 2023

### [1382\. Balance a Binary Search Tree](https://tapanrachchh.hashnode.dev/1382-balance-a-binary-search-tree?utm_source=hashnode&utm_medium=feed)

\# Definition for a binary tree node. # class TreeNode: # def \_\_init\_\_(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def balanceBST(self, root: TreeNode) -...

1 min read · [tapanrachchh.hashnode.dev](https://tapanrachchh.hashnode.dev/1382-balance-a-binary-search-tree?utm_source=hashnode&utm_medium=feed)

[Feb 9](https://hashnode.com/posts/1382-balance-a-binary-search-tree/698950802dd5b57c8e0142e8)

### [3010\. Divide an Array Into Subarrays With Minimum Cost I](https://tapanrachchh.hashnode.dev/3010-divide-an-array-into-subarrays-with-minimum-cost-i?utm_source=hashnode&utm_medium=feed)

class Solution: def minimumCost(self, nums: List\[int\]) -> int: return nums.pop(0) + sum(sorted(nums)\[:2\])

1 min read · [tapanrachchh.hashnode.dev](https://tapanrachchh.hashnode.dev/3010-divide-an-array-into-subarrays-with-minimum-cost-i?utm_source=hashnode&utm_medium=feed)

[Feb 1](https://hashnode.com/posts/3010-divide-an-array-into-subarrays-with-minimum-cost-i/697f04c314e44055a09ec4cf)

### [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 ...

1 min read · [tapanrachchh.hashnode.dev](https://tapanrachchh.hashnode.dev/3507-minimum-pair-removal-to-sort-array-i?utm_source=hashnode&utm_medium=feed)

[Jan 24](https://hashnode.com/posts/3507-minimum-pair-removal-to-sort-array-i/697435b8fe02f78c715b072b)

### [1877\. Minimize Maximum Pair Sum in Array](https://tapanrachchh.hashnode.dev/1877-minimize-maximum-pair-sum-in-array?utm_source=hashnode&utm_medium=feed)

class Solution: def minPairSum(self, nums: List\[int\]) -> int: ''' Sort it out Scan and track max sum ''' nums.sort() l = len(nums) maxSum = 0 for i in range(l//2): ...

1 min read · [tapanrachchh.hashnode.dev](https://tapanrachchh.hashnode.dev/1877-minimize-maximum-pair-sum-in-array?utm_source=hashnode&utm_medium=feed)

[Jan 24](https://hashnode.com/posts/1877-minimize-maximum-pair-sum-in-array/69743560d9a907d8f8ecdd4c)

### [Solving a 2 Year Old Problem on Leetcode](https://tapanrachchh.hashnode.dev/solving-a-2-year-old-problem-on-leetcode?utm_source=hashnode&utm_medium=feed)

Hey folks! Today I encounted a problem which I tried solving 2 years back (2023) Question Link → 1498. Number of Subsequences That Satisfy the Given Sum Condition So, looking at my 2 year old attempt, I wanted to challenge myself to solve it this ti...

4 min read · [tapanrachchh.hashnode.dev](https://tapanrachchh.hashnode.dev/solving-a-2-year-old-problem-on-leetcode?utm_source=hashnode&utm_medium=feed)

[Jun 29, 2025](https://hashnode.com/posts/solving-a-2-year-old-problem-on-leetcode/6861089062d0b79e5d3f4968)
