BackmediumUncategorized uncategorized medium

Maximum Crate Allocation Solution

Problem Statement

You are given a list of crates with their weights and a list of camps with their weight capacities. Each crate can be transported to a subset of the camps. Determine the maximum number of crates that can be allocated to the camps without exceeding their weight capacities.

Example 1
Input
undefined
Output
3
Live Compiler
Loading...
Test Cases & Output
🔒 Sign up to run your code

🚀 Practice this problem

Run code, get AI hints & track streak

Sign Up Free