Get Minimum Cost
Problem Overview
- Compute the minimum total cost to provide required edge devices and input peripherals using single items or bundles.
- Inputs: edgeDeviceCost, inputPeripheralCost, bundleCost, x, y; Output: minimum total as long; Constraints: all in [1, 1e9].
- Real-world context: optimize procurement for an edge computing setup, allowing flexibility to buy extras to meet needs.
- From Ibm interviews: a coding interview problem and common interview question on cost optimization.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
