Set Intersection Size At Least Two - Leetcode 757 - Python

NeetCodeIO · 20:08

The trick to LeetCode "Set Intersection Size At Least Two" is a greedy pass over the intervals sorted by right endpoint ascending. When two intervals share a right endpoint, put the one with the larger left endpoint f...

Read the full summary on tuber

Redirecting...