Tap here to switch tabs
Problem
Submissions

Problem: Earliest Time to Finish One Task

med
30 min
Try to solve the Earliest Time to Finish One Task problem.

Statement

You are given a two dimensional integer array tasks, where tasks[i] = [s_i, t_i] represents a task that begins at time s_i and requires t_i units of time to complete.

Each task finishes at time s_i ++ t_i.

Return the earliest time at which at least one task is completed.

Constraints:

  • 1≤1 \leq tasks.length ≤100\leq 100

  • tasks[i] = [s_i, t_i]

  • 1≤1 \leq s_i, t_i ≤100\leq 100

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Earliest Time to Finish One Task

med
30 min
Try to solve the Earliest Time to Finish One Task problem.

Statement

You are given a two dimensional integer array tasks, where tasks[i] = [s_i, t_i] represents a task that begins at time s_i and requires t_i units of time to complete.

Each task finishes at time s_i ++ t_i.

Return the earliest time at which at least one task is completed.

Constraints:

  • 1≤1 \leq tasks.length ≤100\leq 100

  • tasks[i] = [s_i, t_i]

  • 1≤1 \leq s_i, t_i ≤100\leq 100