Earliest Possible Day of Full Bloom LeetCode solution in Python
1class Solution:2def earliestFullBloom(self, plantTime: List[int], growTime: List[int]) -> int:3data = list(zip(plantTime, growTime))4data.sort(key=lambda x: -x[1]) # sort by grow time in descending order56res = 07start_time = 08for plant, grow in data:9start_time += plant10res = max(res, start_time + grow)11return res