Print the required permutation
for ( int i = 1 ; i < L ; ++ i ) { cout << v1 [ j ] << " ▁ " ; j ++ ; } for ( int i = L ; i <= R ; ++ i ) { cout << v [ f ] << " ▁ " ; f ++ ; } for ( int i = R + 1 ; i <= N ; ++ i ) { cout << v1 [ j ] << " ▁ " ; j ++ ; } } return ; }