CODE WITH VIRUS
Kanalga Telegram’da o‘tish
1 278
Obunachilar
Ma'lumot yo'q24 soatlar
Ma'lumot yo'q7 kun
Ma'lumot yo'q30 kun
Postlar arxiv
1 278
Programming logic Answers ✅✅
1)Yes
2)Array's Base address
3)Collison
4) AB+C*D/E-
5)Dynamic binding
Telegram:- ✅Share join 👇@coding_solution
1 278
Bots on social media code✅
All test cases passed ✅✅
Python3
Telegram:- ✅Share join 👇@coding_solution
1 278
vector<int> v;
int n=inputNum;
while(n)
{
int t=n%10;
v.push_back(t);
n/=10;
}
reverse(v.begin(),v.end());
int i=0,j=v.size()-1;
int sum=0;
while(i<=j)
{
if(i==j)
{
sum+=v[i];
i++;
j--;
continue;
}
int x=v[i]*10+v[j];
i++;
j--;
sum+=x;
}
return sum;
Closure Sum
Telegram:- ✅Share join 👇@coding_solution
1 278
string s=inputStr;
string t=rotateNow;
string ans="";
int x=t[1]-'0';
int f=(t[0]=='L'?1:0);
stringstream ss(s);
string word;
while(ss>>word)
{
if(f==1)
{
string a=word.substr(0,x);
string b=word.substr(x);
ans+=b+a;
ans+=" ";
}
else
{
string a=word.substr(word.size()-x);
string b=word.substr(0,word.size()-x);
ans+=a+b;
ans+=" ";
}
}
ans.pop_back();
inputStr=ans;
String Rotation
IBM
Telegram:- ✅Share join 👇@coding_solution
1 278
#include<bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int t;
cin>>t;
while(t--)
{
long long int n,m;
cin>>n>>m;
long long int a[n];
for(int i=0;i<n;i++)
cin>>a[i];
map<long long int,long long int>mp;
mp[0]=-1;
long long int prefix[n]={0},sum=0;
long long int Max=0;
for(int i=0;i<n;i++)
{
sum+=a[i];
prefix[i]=sum;
if(mp.find(sum%m)==mp.end())
mp[sum%m]=i;
else
{
if(sum%m==0)
Max=sum;
else
Max=max(Max,sum-prefix[mp[sum%m]]);
}
}
cout<<Max/m<<"\n";
}
}
//chocolate distribution code
//c++
Telegram:- ✅Share join 👇@coding_solution
1 278
HackerEarth Exam
Count of pairs code✅
Python3
Remove everything in compiler and type this code
Telegram:- ✅Share join 👇@coding_solution
1 278
Array difference code✅✅
C++ code
Only write code in function
Dont remove code in compile
Telegram:- ✅Share join 👇@coding_solution
1 278
HackerEarth ✅✅
K-Frequency-Code
Python3
Remove everything in compiler and type this code
Telegram:- ✅Share join 👇@coding_solution
1 278
maximize the sum of given n numbers for performing at most k operations python ✅
Telegram:- ✅Share join 👇@coding_solution
1 278
Red hat internship exam
Counting string permutations
Python 3
Telegram:- ✅Share join👇 @coding_solution
1 278
Red hat intership exam
Find the string
python 3 code
All test cases passed
✅Telegram:- ✅Share join👇 @coding_solution
