0
C++ program to search element of Array and frequency. Help!!!
2 RĂ©ponses
+ 2
I suggest you to try and search the Code Playground for some inspirations. Once you find one, you can learn from it, and expand as necessary đ
Or, if you have the code but are having problem with it, then save the code in SoloLearn and share the code link in the Description above â
Here's how to share a saved code link đ
https://www.sololearn.com/post/75089/?ref=app
+ 2
Use multiset. For example:
multiset<int> arr = {1, 2, 2, 3, 1, 1};
cout << arr.count(1); // it will be 3