You are given an array $req$ containing floating-point numbers, where each element represents the weight of a specific request. You need to forward all the requests. You can forward multiple requests together in a single operation, provided that the sum of their weights does not exceed $3.00$.
Find the minimum number of forwarding operations (or batches) required to successfully send all requests.
5
1.1 1.5 2.5 3.00 1.2
4
You can group the requests as follows to minimize the count: