LeetCode 561 - Array Partition
LeetCode Problem 561 Difficulty: 🟢 Easy Topics: Array, Greedy, Sorting, Counting Sort Solution Problem Understanding The problem gives an array nums containing 2n integers. Our task is to divide these integers into exactly n pairs. For each pair (ai, bi) , we take the smaller value, min(ai, bi) . After computing the minimum value from every pair, we sum all of those minimums together. The goal is to arrange the...