Longest increasing subsequence queries

Revision en1, by swordx, 2019-03-04 11:57:58

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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English swordx 2019-03-04 19:33:03 102
en1 English swordx 2019-03-04 11:57:58 463 Initial revision (published)