Word Meaning
- Procurement = a formal word for โbuyingโ or โpurchasing,โ usually used in business or government.
- Plan = a strategy or arrangement.
So Procurement Plan literally means:
๐ โA plan for how to buy things within a budget.โ
Problem (in simple words)
- We have a list of part prices โ
nums
.
- Budget =
target
.
- We want to buy exactly 2 parts.
- The total cost must be less than or equal to target.
- Question: How many different pairs can we buy?
- Because the number can be very big, return the result modulo 1,000,000,007.
Example 1
nums = [2, 5, 3, 5], target = 6
- Possible pairs:
- 2 + 3 = 5 โ
- all others are too expensive โ
Answer = 1
Example 2
nums = [2, 2, 1, 9], target = 10