...

/

Building Bridges Problem - Solution Using LIS

Building Bridges Problem - Solution Using LIS

Solve a real interview problem based on the concept of Longest Increasing Subsequence.

Problem statement

You are given two arrays of numbers that denote the endpoints of bridges. What is the maximum number of bridges that can be built if ith{i^{th}} ...