Kill the enemy
C++
Amazon 1.15 PM
#include <vector>
#include <algorithm>
int solve(std::vector<int> &A, int B) {
long long m1 = 0, m2 = 0;
for (int val : A) {
if (val > m1) {
m2 = m1;
m1 = val;
} else if (val > m2) {
m2 = val;
}
}
long long b = B;
long long s = m1 + m2;
if (s == 0) {
return b > 0 ? -1 : 0;
}
long long k = b / s;
int ans = k * 2;
long long rem = b % s;
if (rem == 0) {
return ans;
} else if (rem <= m1) {
return ans + 1;
} else {
return ans + 2;
}
}
C++
Amazon 1.15 PM
#include <vector>
#include <algorithm>
int solve(std::vector<int> &A, int B) {
long long m1 = 0, m2 = 0;
for (int val : A) {
if (val > m1) {
m2 = m1;
m1 = val;
} else if (val > m2) {
m2 = val;
}
}
long long b = B;
long long s = m1 + m2;
if (s == 0) {
return b > 0 ? -1 : 0;
}
long long k = b / s;
int ans = k * 2;
long long rem = b % s;
if (rem == 0) {
return ans;
} else if (rem <= m1) {
return ans + 1;
} else {
return ans + 2;
}
}
❤1
Company: EY ( Ernst & Young)
Role: Tech Analyst
CTC: 12-15 lakhs
Batch: 2025
Apply:
https://careers.ey.com/ey/job/New-Delhi-Analyst-Tech-Consulting-GOV-CNS-TC-Technology-Strategy-&-Transformation-New-Delhi-Nati-110037/1232720901/
Role: Tech Analyst
CTC: 12-15 lakhs
Batch: 2025
Apply:
https://careers.ey.com/ey/job/New-Delhi-Analyst-Tech-Consulting-GOV-CNS-TC-Technology-Strategy-&-Transformation-New-Delhi-Nati-110037/1232720901/
❤3
Company: IBM
Role: Software Engineer
Experience: 0–1 Year
Location: India
Direct Apply Link: https://ibmglobal.avature.net/en_US/careers/JobDetail/Software-Engineer/49537
Role: Software Engineer
Experience: 0–1 Year
Location: India
Direct Apply Link: https://ibmglobal.avature.net/en_US/careers/JobDetail/Software-Engineer/49537
❤2
ZOHO Corp is hiring for User Experience Designer Role
Experience: 0 - 1 year's
Apply here: https://careers.zohocorp.com/forms/fcc89b5ebd373d598e0224d10f2199d1905b758618ed401dbc7511955b632ee3
Infosys is hiring for Process Executive Role
Experience: 0 - 1 year's
Apply here: https://career.infosys.com/jobdesc?jobReferenceCode=PROGEN-HRODIRECT-222312#error=login_required&state=98653d03-d299-4cc1-b2fb-230bb9e2b482&iss=https%3A%2F%2Fintapidm.infosysapps.com%2Fauth%2Frealms%2Fcareersite
Experience: 0 - 1 year's
Apply here: https://careers.zohocorp.com/forms/fcc89b5ebd373d598e0224d10f2199d1905b758618ed401dbc7511955b632ee3
Infosys is hiring for Process Executive Role
Experience: 0 - 1 year's
Apply here: https://career.infosys.com/jobdesc?jobReferenceCode=PROGEN-HRODIRECT-222312#error=login_required&state=98653d03-d299-4cc1-b2fb-230bb9e2b482&iss=https%3A%2F%2Fintapidm.infosysapps.com%2Fauth%2Frealms%2Fcareersite
❤4
Qualcomm – Engineer Roles
Location: India
Experience: 0-2 yrs
Apply Direct: https://careers.qualcomm.com/careers/job/446706882405?hl=en-US&domain=qualcomm.com&source=APPLICANT_SOURCE
Location: India
Experience: 0-2 yrs
Apply Direct: https://careers.qualcomm.com/careers/job/446706882405?hl=en-US&domain=qualcomm.com&source=APPLICANT_SOURCE
❤2
GE Healthcare is hiring for Trainee Engineer
Experience: 0 - 2 years
Apply now: https://careers.gehealthcare.com/global/en/job/GEVGHLGLOBALR4028147EXTERNALENGLOBAL/Trainee-Engineer
Experience: 0 - 2 years
Apply now: https://careers.gehealthcare.com/global/en/job/GEVGHLGLOBALR4028147EXTERNALENGLOBAL/Trainee-Engineer
❤4
American Chase hiring Associate System Engineer
2025 batch passouts eligible
Apply Link : https://americanchase.keka.com/careers/jobdetails/88834
2025 batch passouts eligible
Apply Link : https://americanchase.keka.com/careers/jobdetails/88834
❤2