Answers for "c++ set count"

C++
0

c++ set count

Input: set <int> myset = {1, 2, 3, 4, 6};
   myset.count(2);
Output: 1
Input: set<int> myset = {1, 2, 3, 4, 6};
   myset.count(5);
Output: 0
Posted by: Guest on April-04-2021

Browse Popular Code Answers by Language