Solution: Collecting Signatures
Solutions for the Collecting Signatures Problem.
We'll cover the following
Solution 1: Find a segment with the smallest right end
Consider the smallest ending point of a segment: = min,…,. We claim that there exists an optimum solution containing the point . To prove this, we take an optimum solution .
It must cover the segment ,, therefore, contains a point such that . If , then we are done. Otherwise, . In this case, we can replace by in .
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.