Search
⌘K
Get Premium
Leetcode 495. Teemo Attacking
Given sorted attack times and a fixed poison duration, compute the total number of seconds the target is poisoned — equivalently, the length of the union of the inclusive intervals [t_i, t_i + duration - 1], where overlapping intervals from attacks within the duration are counted only once.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.