Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
03
:
15
:
12
Back to Dashboard
Range Coverage Tracker
Medium
You are painting a road of total length n. Each paint stroke starting at position x covers the segment [x, x + 1]. Implement a RangeTracker class that tracks all painted segments and can report whether the entire road from 0 to n is fully covered.
Methods: ...