Hello all,
Can you please share your thoughts on the following question:
Given an array of integers and some queries, you have to tell the length of the longest increasing subsequence for each query. The query is in the form such that you have to change the value at a given index to given value.
Example: Arr[]={1,6,2,4};
query: 1 4 : means: arr[1]=4, Now calculate the length of LIS.
Thanks in advance.