ATS resume help
Відкрити в Telegram
WhatsApp Me https://wa.me/917674087200 ✅ ATS-Friendly Resumes ✅ Higher Interview Calls ✅ Free Tips + Templates
Показати більше3 699
Підписники
-224 години
-227 днів
-7830 днів
Архів дописів
3 698
#include<bits/stdc++.h>
using namespace std;
int find(int n1, int n2) {
int count = 0;
for (int i = n1 ; i <= n2 ; i++) {
int num = i;
vector<bool> visited;
visited.assign(10, false);
while (num > 0) {
if (visited[num % 10] == true)
break;
visited[num % 10] = true;
num /= 10;
}
if (num == 0)
count++;
}
return count;
}
int main()
{
int n1 = 101, n2 = 200;
cout << find(n1, n2);
}
1st code in c++
Passed all test cases ✅✅
3 698
I am busy these days 😞😞
If i am available, I will post answers for free ✅✅
Telegram-- @codingPalace
3 698
#include <bits/stdc++.h>
using namespace std;
int main() {
int n,k;
cin>>n>>k;
int a[n];
for(int i=0;i<n;i++){
cin>>a[i];
}
int cnt=1;
int ans=0;
while(cnt<k){
sort(a,a+n,greater<int>());
for(int i=0;i<k;i++){
a[i]-=1;
}
for(int i=0;i<n;i++){
if(a[i]==0)cnt++;
}
ans++;
}
cout<<ans<<endl;
return 0;
}
//answer of joe code
//language - c++
3 698
Advanced Reasoning
1. CF
2. Umesh
3. MWONEY
4)data either
5)candidate is to be refered
6) ajmal
7)crtdwhb
8)R
9)KQG
10)293
