You are given an array of intervals intervals, where intervals[i] = [start_i, end_i] represents an inclusive interval starting at $ ext{start}_i$ and ending at $ ext{end}_i$.
Two intervals intersect if they share at least
Return the total number of pairs intervals[i] and intervals[j] intersect.
Constraints:
intervals.length
intervals[i] = [start_i, end_i]
You are given an array of intervals intervals, where intervals[i] = [start_i, end_i] represents an inclusive interval starting at $ ext{start}_i$ and ending at $ ext{end}_i$.
Two intervals intersect if they share at least
Return the total number of pairs intervals[i] and intervals[j] intersect.
Constraints:
intervals.length
intervals[i] = [start_i, end_i]