0

C++ program to search element of Array and frequency. Help!!!

7th Oct 2020, 4:39 AM
Vishal
Vishal - avatar
2 odpowiedzi
+ 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
7th Oct 2020, 5:51 AM
Ipang
+ 2
Use multiset. For example: multiset<int> arr = {1, 2, 2, 3, 1, 1}; cout << arr.count(1); // it will be 3
25th Oct 2020, 11:03 AM
Soheil
Soheil - avatar