You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. A pair (c, d) can follow another pair (a, b) if b < c. Chain of pairs can be formed in this…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.