#3683
Earliest Time to Finish One Task
newbie · 140 · lc easy +13 · 84.4% accepted · 46 likes · top 96%
Description
A 2D array tasks is given where each entry [s, t] represents a task starting at time s with duration t. Return the earliest completion time across all tasks.
Code
1
2
3