hiroshima_boy's blog

By hiroshima_boy, history, 4 years ago, In English

I don't have the exact question link which directs us implement this idea but I have an abstract.

Two arrays containing distinct(unique) elements are given . We have to delete minimum number of elements from both the arrays such that a strictly increasing sequence of length 4 does not exist. Provided a Sequence is made by alternately taking elements from the arrays.

Arrays contain only the elements from [1,array1.length+array2.length]

  • Vote: I like it
  • +12
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Can you explain with a test case ?