You are given a amount of length amount[0], amount[1], and amount[2] denote the number of cold, warm, and hot cups of water you need to fill, respectively.
In each second, you can choose to:
Fill
Fill
Return the minimum number of seconds required to fill all the cups.
Constraints:
amount.length
amount[i]
You are given a amount of length amount[0], amount[1], and amount[2] denote the number of cold, warm, and hot cups of water you need to fill, respectively.
In each second, you can choose to:
Fill
Fill
Return the minimum number of seconds required to fill all the cups.
Constraints:
amount.length
amount[i]