There are costs of length costs[i] denotes the price of the ice cream bar at index i. You are also given an integer coins representing the initial number of coins you possess.
Return the maximum number of ice cream bars you can purchase with coins coins.
Note: The ice cream bars can be purchased in any order.
Constraints:
costs.length
costs[i]
coins
There are costs of length costs[i] denotes the price of the ice cream bar at index i. You are also given an integer coins representing the initial number of coins you possess.
Return the maximum number of ice cream bars you can purchase with coins coins.
Note: The ice cream bars can be purchased in any order.
Constraints:
costs.length
costs[i]
coins