There`s a lot of tutorials exist for removing duplicate values and I have checked all
like
{1,2,3,4,1,2,3,4,5} -> {1,2,3,4,5}
by using sort(), unique() function.
but if I want to remove 'all duplicated' values
like
{1,2,3,4,1,2,3,4,5} -> {5}
How to implement it?
I have manually split the original vector into two parts and remove the duplicated elements in first one by later one.
It makes sense but if the original vector size became huge, then I cannot split the original vector manually.