Company: IBM
Difficulty: medium
Problem Title: Edge Computing Resource Optimization In an edge computing environment, required hardware includes edge devices, input peripherals, and bundles that encompass both types. Each resource comes at a cost, with edge devices priced at edgeDeviceCost , peripherals at inputPeripheralCost , and bundles at bundleCost . The challenge is to optimize the procurement of resources. The objective is to ensure the provision of the right quantities of edge devices and peripherals, allowing for a degree of flexibility and accommodating extra equipment. This flexibility is provided to meet the requirements of the environment, which necessitates x edge devices and y peripherals. The primary goal is to minimize costs while simultaneously guaranteeing that the edge computing environment is equipped with all the essential resources. Compute and return the total expenditure. Input Format The input consists of: edgeDeviceCost : Cost of each edge device. inputPeripheralCost : Cost of each input pe