Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO
Открыть в Telegram
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
Больше3 337
Подписчики
-424 часа
-147 дней
-5330 день
Архив постов
✅Share✅Share✅Share ✅share✅
complete 2k😍
@Coding_000
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
Уже доступно! Исследование Telegram 2025 — ключевые инсайты года 
