BackmediumUncategorized uncategorized medium

Minimize Weighted Crate Loads Solution

Problem Statement

Given a list of integers `crates` representing the weights of the crates and a list of integers `vehicles` representing the maximum weight capacities of the transport vehicles, determine the maximum number of crates that can be loaded onto the vehicles without exceeding their weight capacities.

Constraints

  • {"name":"crates length","min":1,"max":1000}
  • {"name":"vehicles length","min":1,"max":100}
  • {"name":"crate weight","min":1,"max":1000}
  • {"name":"vehicle capacity","min":1,"max":10000}
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