LeetCode solutions

4012. Earliest Time to Finish One Task

My accepted Python solution to LeetCode problem 4012, Earliest Time to Finish One Task, running in 2ms.

  • Difficulty: Easy
  • Python
  • Runtime 2ms
  • Memory 17.2MB

Read the problem on LeetCode View on GitHub

Python

Accepted on LeetCode — runtime 2ms, memory 17.2MB, accepted 2025-12-30.

python
class Solution:
    def earliestTime(self, tasks: List[List[int]]) -> int:
        return min(s + t for s, t in tasks)

Source