2848. Points That Intersect With Cars
You are given a 0-indexed 2D integer array
numsrepresenting the coordinates of the cars parking on a number line. For any indexi,nums[i] = [starti, endi]wherestartiis the starting point of theithcar andendiis the ending point of theithcar.Return the number of integer points on the line that are covered with any part of a car.
1 | class Solution { |