Challenge: Collecting Signatures
Solve the Collecting Signatures Problem.
We'll cover the following
Problem
This problem is similar to the Covering Segments by Points Problem.
Covering Segments by Points
Find the minimum number of points needed to cover all given segments on a line.
Input: A sequence of segments on a line.
Output: A set of points of minimum size such that each segment contains a point, i.e., there exists a point from this set such that .
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.