← 返回 snowflake 的题目列表Deployments Node Calculation
类型:online_judge
Design a class for deployments with model name, number of GPUs, and number of replicas. Given a list of deployments and a maximum number of GPUs, return the number of nodes required to fit all replicas. Solve using backtracking and recursion.
Example
Input
deployments = [(model1, 2, 3), (model2, 1, 5)], max_gpus = 4