---
title: "#minimum-sum-of-price articles | Hashnode"
description: "Explore 1 articles tagged #minimum-sum-of-price on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/minimum-sum-of-price"
---

Tag

# #minimum-sum-of-price

1 posts · 0 followers

[Prince Kumar](https://hashnode.com/@crewx152) · [Feb 13, 2023](https://hashnode.com/posts/find-minimum-sum-of-price-required-to-select-atleast-m-distinct-values-from-array-else-return-1/63e9cadc2d358568b92f25e7)

### [Find Minimum Sum of price required to select atleast M distinct values from array else return -1](https://coder152.com/find-minimum-sum-of-price-required-to-select-atleast-m-distinct-values-from-array-else-return-1?utm_source=hashnode&utm_medium=feed)

We will be given two arrays having n elements from which one array values \[\] will be the collection of values and another array price\[\] will be the collection of prices. We have to select the m distinct values such that the sum of the price will be m...

4 min read · [coder152.com](https://coder152.com/find-minimum-sum-of-price-required-to-select-atleast-m-distinct-values-from-array-else-return-1?utm_source=hashnode&utm_medium=feed)
