Given n k non-overlapping line segments.
Each segment must connect two distinct integer points with positive length. Two segments are considered non-overlapping if they do not cover any common interval of positive length. They are allowed to share an endpoint.
Since the answer may be very large, return it modulo
Constraints:
n
k n
Given n k non-overlapping line segments.
Each segment must connect two distinct integer points with positive length. Two segments are considered non-overlapping if they do not cover any common interval of positive length. They are allowed to share an endpoint.
Since the answer may be very large, return it modulo
Constraints:
n
k n