Computer Science, asked by thunderjk2035, 1 year ago

C++ check if two vectors contain any common element

Answers

Answered by ams68
2

To check if two vector contain the same element, but in different order, sort vector before calling any of below method..

1. using == operator. simplest solution to be use==operator check if the content of two comtainer are equal or not..

2.std::equal..

3.std:;mismatch..

Similar questions