โโโ#include <bits/stdc++.h>
#define ll long long
using namespace std;
bool isVowel(char c) {
return c == 'a'c == 'e' c == 'i' c == 'o' c == 'u' c == 'A' c == 'E' c == 'I' c == 'O' || c == 'U';
}
ll solve(vector<char>& a) {
ll n=a.size(),ans=0,cnt=0;
for (ll i=0;i<n;i++)
{
if (isVowel(a[i])) cnt++;
else ans+=(cnt*(cnt+1)/2),cnt=0;
}
if(cnt!=0) ans+=(cnt*(cnt+1)/2);
return ans;
}
signed main() {
ll n; cin>>n;
vector<char>a(n);
for(ll i=0;i<n;i++) cin>>a[i];
cout<<solve(a);
return 0;
}
โโโ
Flipkart โ
#define ll long long
using namespace std;
bool isVowel(char c) {
return c == 'a'
}
ll solve(vector<char>& a) {
ll n=a.size(),ans=0,cnt=0;
for (ll i=0;i<n;i++)
{
if (isVowel(a[i])) cnt++;
else ans+=(cnt*(cnt+1)/2),cnt=0;
}
if(cnt!=0) ans+=(cnt*(cnt+1)/2);
return ans;
}
signed main() {
ll n; cin>>n;
vector<char>a(n);
for(ll i=0;i<n;i++) cin>>a[i];
cout<<solve(a);
return 0;
}
โโโ
Flipkart โ
Sports Analysis
Profit Development
Sum of similarity
Hindustan Times โ
Profit Development
Sum of similarity
Hindustan Times โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Associate Software Engineer Intern
WebGo Software Labs ยท Bengaluru,
โน50K/month - โน65K/month
https://www.linkedin.com/jobs/view/3898647976
WebGo Software Labs ยท Bengaluru,
โน50K/month - โน65K/month
https://www.linkedin.com/jobs/view/3898647976
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Software development R&D engineer (AI/ML/NLP), Graduation Year (2023/2024) at Sekyurity AI
https://www.linkedin.com/jobs/view/3899427155
https://www.linkedin.com/jobs/view/3899427155
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
We are hiring for a Generative AI intern!
https://docs.google.com/forms/d/e/1FAIpQLSc_kGvyXPj-cC5aksSOESDFJmvtVnvPdOvUmzikcwMgcbbOLw/viewform
https://docs.google.com/forms/d/e/1FAIpQLSc_kGvyXPj-cC5aksSOESDFJmvtVnvPdOvUmzikcwMgcbbOLw/viewform
๐2
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Pearson
๐ Job Title: Data Engineer Intern
โ๐ป YOE: 2024 and 2025 grads
โก๏ธ Apply: https://pearson.jobs/bangalore-ind/data-engineer-intern/A7DBAA9089EF49D79B56F24697A6155A/job/?vs=1554
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐ Job Title: Data Engineer Intern
โ๐ป YOE: 2024 and 2025 grads
โก๏ธ Apply: https://pearson.jobs/bangalore-ind/data-engineer-intern/A7DBAA9089EF49D79B56F24697A6155A/job/?vs=1554
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: ServiceNow
๐ Job Title: Software Engineer
โ๐ป YOE: 0-2 years
โก๏ธ Apply: https://jobs.smartrecruiters.com/ServiceNow/743999980993372-software-engineer
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐ Job Title: Software Engineer
โ๐ป YOE: 0-2 years
โก๏ธ Apply: https://jobs.smartrecruiters.com/ServiceNow/743999980993372-software-engineer
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Amadeus
๐ Job Title: Associate SDE
โ๐ป YOE: 2023 and 2024 grads
โก๏ธ Apply: https://amadeus.wd3.myworkdayjobs.com/jobs/job/Pune/Associate-Software-Development-Engineer_R18294
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐ Job Title: Associate SDE
โ๐ป YOE: 2023 and 2024 grads
โก๏ธ Apply: https://amadeus.wd3.myworkdayjobs.com/jobs/job/Pune/Associate-Software-Development-Engineer_R18294
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐1
#include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c; cin>>a>>b>>c;
vector<int>cnt(26,0);
for(auto ele: a){
cnt[ele-'A']++;
}
for(auto ele: b){
cnt[ele-'A']++;
}
for(auto ele: c){
cnt[ele-'A']--;
}
bool flag=true;
for(auto ele: cnt){
if(ele<0) flag=false;
}
if(flag) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
Magnetic Lettersโ
using namespace std;
int main(){
string a,b,c; cin>>a>>b>>c;
vector<int>cnt(26,0);
for(auto ele: a){
cnt[ele-'A']++;
}
for(auto ele: b){
cnt[ele-'A']++;
}
for(auto ele: c){
cnt[ele-'A']--;
}
bool flag=true;
for(auto ele: cnt){
if(ele<0) flag=false;
}
if(flag) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
Magnetic Lettersโ
#include <iostream>
#include <string>
using namespace std;
int smallest_possible_number(const string& S) {
if (S.size() == 1 && S[0] == '0') {
return -1;
}
if (S.find('1') == string::npos) {
return -1;
}
int number = 1;
int n = S.size();
for (int i = n - 1; i >= 0; --i) {
if (S[i] == '1') {
if (number % (i + 1) != 0) {
number *= (i + 1);
}
} else {
while (number % (i + 1) == 0) {
number += 1;
}
}
}
return number;
}
Base Conversion โ
#include <string>
using namespace std;
int smallest_possible_number(const string& S) {
if (S.size() == 1 && S[0] == '0') {
return -1;
}
if (S.find('1') == string::npos) {
return -1;
}
int number = 1;
int n = S.size();
for (int i = n - 1; i >= 0; --i) {
if (S[i] == '1') {
if (number % (i + 1) != 0) {
number *= (i + 1);
}
} else {
while (number % (i + 1) == 0) {
number += 1;
}
}
}
return number;
}
Base Conversion โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
#include <iostream> #include <string> using namespace std; int smallest_possible_number(const string& S) { if (S.size() == 1 && S[0] == '0') { return -1; } if (S.find('1') == string::npos) { return -1; } int number =โฆ
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll gcd(ll a,ll b) { if (b==0) return a; return gcd(b,a%b); }
ll lcm(ll a,ll b) { return a/gcd(a,b)*b; }
ll solve(string s)
{
ll n=s.size();
vector<ll>c;
for(ll i=0;i<n;i++)
if(s[i]=='1') c.push_back(i+1);
ll ans=c[0];
for(ll i=0;i<c.size();i++) ans=lcm(ans,c[i]);
if(s=="01" or c.size()==0) return -1;
return ans;
}
signed main()
{
string s; cin>>s;
cout<<solve(s);
return 0;
}
โค1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐View, Inc is hiring for Software Engineer I - QA Engineer
Experience: 0-2 years
๐Apply here: https://linkedin.com/jobs/view/3903309142/
Experience: 0-2 years
๐Apply here: https://linkedin.com/jobs/view/3903309142/
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll count(ll k,vector<ll>&a,vector<ll>&b)
{
ll n=a.size();
ll m=b.size();
unordered_map<ll,ll>mpp;
ll ans=0;
for(ll i=0;i<n;i++) mpp[__gcd(a[i],k)]++;
for(ll i=0;i<m;i++)
{
for (auto &it:mpp)
if((__gcd(b[i],k)*it.first)%k==0) ans+=it.second;
}
return ans;
}
signed main()
{
ll n,m,k; cin>>n>>m>>k;
vector<ll>a(n),b(m);
for(ll i=0;i<n;i++) cin>>a[i];
for(ll i=0;i<m;i++) cin>>b[i];
cout<<count(k,a,b);
return 0;
}
product divisibility โ
๐1
#include <stdio.h>
int main()
{
int cases,arr1[100],k=0,arr2[100];
scanf("%d",&cases);
for(int x=0;x<cases;x++)
arr2[x]=0;
for(int i=0;i<cases;i++)
{
scanf("%d",&arr1[i]);
}
for(int j=0;j<cases;j++)
{
while(arr1[j]>1)
{
if(arr1[j]%2==0)
{
arr2[k]=arr2[k]+arr1[j]/2;
arr1[j]=arr1[j]/2;
}
else
{
arr2[k]=arr2[k]+arr1[j]/2;
arr2[k]++;
arr1[j]=arr1[j]/2;
}
}
k++;
}
for(int l=0;l<cases;l++)
printf("%d\n",arr2[l]);
return 0;
}
Sports Tournament โ
int main()
{
int cases,arr1[100],k=0,arr2[100];
scanf("%d",&cases);
for(int x=0;x<cases;x++)
arr2[x]=0;
for(int i=0;i<cases;i++)
{
scanf("%d",&arr1[i]);
}
for(int j=0;j<cases;j++)
{
while(arr1[j]>1)
{
if(arr1[j]%2==0)
{
arr2[k]=arr2[k]+arr1[j]/2;
arr1[j]=arr1[j]/2;
}
else
{
arr2[k]=arr2[k]+arr1[j]/2;
arr2[k]++;
arr1[j]=arr1[j]/2;
}
}
k++;
}
for(int l=0;l<cases;l++)
printf("%d\n",arr2[l]);
return 0;
}
Sports Tournament โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Kantar is seeking MBA/PGDM students (2023-2025) who are ready to start their internships in a Market Research role across multiple locations! This is a great opportunity for those looking to gain experience in the field and work with a leading company.
If you fit the bill and are ready to start immediately, share your resume with umika.nair@kantar.com to apply. Don't miss out on this amazing opportunity!
If you fit the bill and are ready to start immediately, share your resume with umika.nair@kantar.com to apply. Don't miss out on this amazing opportunity!