LOCKHEED MARTIN Hiring Challenge | Interview Online Assessment Question
Question · Posted Jun 2026
Q1: Maximum Length of Pair Chain Problem Statement You are given an array of pairs [a, b] where a < b. A pair (c, d) can follow (a, b) if: b < c Return the maximum length of a chain that can be formed. Example Input pairs = [[1,2],[2,3],[3,4]] Output 2 Constraints 1 <= pairs.length <= 1000
The full answer & interview discussion are available to premium members.
Log in Create a free account