C++ check if two vectors contain any common element
Answers
Answered by
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
English,
6 months ago
Science,
6 months ago
Math,
11 months ago
Math,
11 months ago
Computer Science,
1 year ago