0
C++ program to search element of Array and frequency. Help!!!
2 Antworten
+ 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