Company: uber_6oct
Difficulty: medium
Maximize Ride Credits Problem Description Uber provides promotional ride credits to passengers. Each credit package contains a certain number of ride kilometers and has a fixed cost. A passenger has a limited budget in dollars and wants to maximize the total kilometers they can cover using these packages. Only complete packages can be purchased, and no partial packages are allowed. Determine the maximum number of ride kilometers a passenger can buy without exceeding their budget. Complete the function maximizeRideCredits in the editor with the following parameter(s): budget: int - the maximum amount of money available to spend (in dollars). packageKilometers: List[int] - the number of kilometers included in each package from different offers. packageCosts: List[int] - the cost of each package, aligned with packageKilometers by index. Return: int - the maximum total kilometers that can be purchased within the given budget. int maximizeRideCredits(int budget, int packageKilometers_count,