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 365
مشترکین
-124 ساعت
-47 روز
-4530 روز
آرشیو پست ها
Guys share the screenshot in large groups and Share with your friends ✅🔥 @whitehatcoding❤️
I don't see anyone sharing 🥲
AnimatedSticker.tgs0.02 KB
class Solution{
public:
string kPeriodic(string s, int K){
// code here
map<char,int> hm;
for(int i=0;i<s.size();i++){
hm[s[i]]++;
}
int n= s.size();
int res= n/__gcd(n,K);
for(auto t:hm){
if(t.second % res)
return "-1";
}
string p="";
for(auto t:hm){
int pre=t.second/res;
while(pre--)
p+=t.first;
}
string ans="";
while(res--)
ans+=p;
return ans;
}
};
C++
K-Periodic Circular String
Second
GFG Weekly Coding Contest 103
class Solution{
public:
long long refueling(int X)
{
long long a, b;
for(int i=0; iX){
b = pow(2,i-1);
if(abs(X-a) == abs(X-b))return a;
if(abs(X-a) < abs(X-b))return a;
else return b;
}
}
return -1;
}
};
C++
Refueling
Guys!!
If you are seriously looking for good job opportunities,
https://practice.geeksforgeeks.org/contest/job-a-thon-20-hiring-challenge
Do participate :) 🔥
More you share our answers more answers you will get from us ❤️
اکنون در دسترس! پژوهش تلگرام ۲۰۲۵ — مهمترین بینشهای سال 
