โ† Citrix questions

Find the longest line segment from given 1D segments

Filed under Citrix

The question

Given starting and ending coordinates of one-dimensional line segments, write two functions addSegment() and findMaxSegment() to find the coordinates of the longest line segment that can be formed.

No write-up yet. Related questions below have one.

Related Citrix questions

Collected from public candidate posts and coding forums. Updated Nov 2026.