uz
Feedback
Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO

Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO

Kanalga Telegram’da o‘tish

Main channel https://t.me/Coding_000 Contact Admin 👉 @ILOVEU_143 for booking your exam slots Web- https://coding000.github.io/Projects/ 💯% clearance in any placement exams OffCampus -https://t.me/Offcampus_000 Discussion- https://t.me/exams_discussion

Ko'proq ko'rsatish
3 337
Obunachilar
-424 soatlar
-147 kunlar
-5330 kunlar
Postlar arxiv
IBM --------😁😁 All IBM solutions will be uploaded there. Link: @Coding_000😁

✅Share✅Share✅Share ✅share✅ complete 2k😍 i will send solutions tcs 2pm slot @Coding_000

#include <bits/stdc++.h> using namespace std; void countToMakeDiffEqual(int arr[], int n) {     int ma = 0;     unordered_map<int, int> m;     for (int i = 0; i < n; i++)     {         m[arr[i]]++;         ma = max(ma, m[arr[i]]);     }     if (n <= 2)         cout << 0 << endl;     else if (ma == 1)     {         cout << n - 2 << endl;     }     else         cout << n - ma << endl; } signed main() {     int n;     cin >> n;     int a[n];     for (int i = 0; i < n; i++)         cin >> a[i];     countToMakeDiffEqual(a, n);     return 0; } C++ @Coding_000