You are given an integer array capacity, where capacity[i] represents the capacity of the itemSize representing the size of an item.
A box can store the item if its capacity is greater than or equal to itemSize.
Return the index of the box with the minimum capacity that can store the item. If multiple boxes share this same minimum capacity, return the smallest index among them. If no box can store the item, return
Constraints:
capacity.length
capacity[i]
itemSize
You are given an integer array capacity, where capacity[i] represents the capacity of the itemSize representing the size of an item.
A box can store the item if its capacity is greater than or equal to itemSize.
Return the index of the box with the minimum capacity that can store the item. If multiple boxes share this same minimum capacity, return the smallest index among them. If no box can store the item, return
Constraints:
capacity.length
capacity[i]
itemSize