target
to its index.arr
and for each integer, check if it exists in the hashmap. If it does, replace it with its corresponding index from target
.arr
and use binary search to find the position of each index in the LIS list.target
that is in arr
.target
to get the minimum number of operations required.