static long minMaxConvoyLoad(int n, int k, long escort, int maxCrates, long[] weights) {
long l = 0, r = 0;
for (long w : weights) {
if (w > l) l = w;
r += w;
}
long res = r;
while (l <= r) {
long m = l + (r - l) / 2;
int g = 1, c = 0;
long s = 0;
for (long w : weights) {
if (s + w > m || c == maxCrates) {
g++;
s = w;
c = 1;
} else {
s += w;
c++;
}
}
if (g <= k) {
res = m;
r = m - 1;
} else {
l = m + 1;
}
}
return res + escort;
}
Google โ
long l = 0, r = 0;
for (long w : weights) {
if (w > l) l = w;
r += w;
}
long res = r;
while (l <= r) {
long m = l + (r - l) / 2;
int g = 1, c = 0;
long s = 0;
for (long w : weights) {
if (s + w > m || c == maxCrates) {
g++;
s = w;
c = 1;
} else {
s += w;
c++;
}
}
if (g <= k) {
res = m;
r = m - 1;
} else {
l = m + 1;
}
}
return res + escort;
}
Google โ
CODING SOLUTION - Placement Jobs & Materials
Photo
import java.util.ArrayList;
import java.util.PriorityQueue;
import java.util.Arrays;
public class Solution {
static class E {
int t;
long w;
E(int t, long w) {
this.t = t;
this.w = w;
}
}
static class N implements Comparable<N> {
int i;
long d;
N(int i, long d) {
this.i = i;
this.d = d;
}
public int compareTo(N o) {
return Long.compare(this.d, o.d);
}
}
static long findSecondShortestTime(int n, int m, int[][] arr) {
ArrayList<E>[] g = new ArrayList[n + 1];
for (int i = 0; i <= n; i++) {
g[i] = new ArrayList<>();
}
for (int i = 0; i < m; i++) {
int u = arr[i][0];
int v = arr[i][1];
long w = arr[i][2];
g[u].add(new E(v, w));
g[v].add(new E(u, w));
}
long[] d1 = new long[n + 1];
long[] d2 = new long[n + 1];
Arrays.fill(d1, Long.MAX_VALUE);
Arrays.fill(d2, Long.MAX_VALUE);
PriorityQueue<N> q = new PriorityQueue<>();
d1[1] = 0;
q.add(new N(1, 0));
while (!q.isEmpty()) {
N c = q.poll();
int u = c.i;
long d = c.d;
if (d > d2[u]) {
continue;
}
for (E e : g[u]) {
int v = e.t;
long nd = d + e.w;
if (nd < d1[v]) {
d2[v] = d1[v];
d1[v] = nd;
q.add(new N(v, d1[v]));
if (d2[v] != Long.MAX_VALUE) {
q.add(new N(v, d2[v]));
}
} else if (nd > d1[v] && nd < d2[v]) {
d2[v] = nd;
q.add(new N(v, d2[v]));
}
}
}
return d2[n];
}
}
Google โ
import java.util.PriorityQueue;
import java.util.Arrays;
public class Solution {
static class E {
int t;
long w;
E(int t, long w) {
this.t = t;
this.w = w;
}
}
static class N implements Comparable<N> {
int i;
long d;
N(int i, long d) {
this.i = i;
this.d = d;
}
public int compareTo(N o) {
return Long.compare(this.d, o.d);
}
}
static long findSecondShortestTime(int n, int m, int[][] arr) {
ArrayList<E>[] g = new ArrayList[n + 1];
for (int i = 0; i <= n; i++) {
g[i] = new ArrayList<>();
}
for (int i = 0; i < m; i++) {
int u = arr[i][0];
int v = arr[i][1];
long w = arr[i][2];
g[u].add(new E(v, w));
g[v].add(new E(u, w));
}
long[] d1 = new long[n + 1];
long[] d2 = new long[n + 1];
Arrays.fill(d1, Long.MAX_VALUE);
Arrays.fill(d2, Long.MAX_VALUE);
PriorityQueue<N> q = new PriorityQueue<>();
d1[1] = 0;
q.add(new N(1, 0));
while (!q.isEmpty()) {
N c = q.poll();
int u = c.i;
long d = c.d;
if (d > d2[u]) {
continue;
}
for (E e : g[u]) {
int v = e.t;
long nd = d + e.w;
if (nd < d1[v]) {
d2[v] = d1[v];
d1[v] = nd;
q.add(new N(v, d1[v]));
if (d2[v] != Long.MAX_VALUE) {
q.add(new N(v, d2[v]));
}
} else if (nd > d1[v] && nd < d2[v]) {
d2[v] = nd;
q.add(new N(v, d2[v]));
}
}
}
return d2[n];
}
}
Google โ
๐ฅ DON'T MISS YOUR DREAM JOB AGAIN! ๐ฅ
Every day, 100+ new jobs are posted.
By the time you find them, hundreds of candidates have already applied.
๐ก Getting hired isn't just about skillsโit's about applying early.
๐ Off Campus Jobs India Premium
๐ Launch Offer: Just โน299 (Lifetime Access)
โ 50+ Verified Jobs Daily
โ Freshers, Internships & Experienced Roles
โ Jobs from 15+ Trusted Platforms
โ Alerts Within 30 Minutes
โ Direct Apply Links & Referrals
โ No Spam โ Only Quality Opportunities
๐ผ One early application could be the one that changes your career.
โณ Don't be late. Be the first to apply.
๐ Join Premium (Lifetime):
๐ https://www.offcampusjobsindia.com/premium
๐ Apply First. Get More Interview Calls.
Every day, 100+ new jobs are posted.
By the time you find them, hundreds of candidates have already applied.
๐ก Getting hired isn't just about skillsโit's about applying early.
๐ Off Campus Jobs India Premium
๐ Launch Offer: Just โน299 (Lifetime Access)
โ 50+ Verified Jobs Daily
โ Freshers, Internships & Experienced Roles
โ Jobs from 15+ Trusted Platforms
โ Alerts Within 30 Minutes
โ Direct Apply Links & Referrals
โ No Spam โ Only Quality Opportunities
๐ผ One early application could be the one that changes your career.
โณ Don't be late. Be the first to apply.
๐ Join Premium (Lifetime):
๐ https://www.offcampusjobsindia.com/premium
๐ Apply First. Get More Interview Calls.
Swish Hiring ๐ฅ
Role : Software Engineer โ Backend
Experience : 1+ Year
Location : Bengaluru, Karnataka
Work Mode : Work from Office
Skills : Java / Kotlin / Go / Python / Node.js, DSA, REST APIs, Databases, Git, Backend Development, System Design
Apply now ๐๏ธ
https://docs.google.com/forms/d/e/1FAIpQLSc9rEDhQ0e09lqO6MIeLdwtLxQ-8QEu08jEi4P2c_aEzfdJyQ/viewform
Role : Software Engineer โ Backend
Experience : 1+ Year
Location : Bengaluru, Karnataka
Work Mode : Work from Office
Skills : Java / Kotlin / Go / Python / Node.js, DSA, REST APIs, Databases, Git, Backend Development, System Design
Apply now ๐๏ธ
https://docs.google.com/forms/d/e/1FAIpQLSc9rEDhQ0e09lqO6MIeLdwtLxQ-8QEu08jEi4P2c_aEzfdJyQ/viewform
๐จ Accenture Hirings (Updated List)
Qualification: B.E / B.Tech, M.E / M.Tech, BCA / MCA, BBA / MBA, B.Com / M.Com, BA / MA, B.Sc / M.Sc (All Branches)
Eligible Passout Batches: 2026, 2025, 2024, 2023, 2022, 2021 & 2020
๐ผ Job Details:
1๏ธโฃ Full Stack Engineer
๐ฐ Salary: โน6.5 โ โน11.2 LPA
๐ Location: Gurugram
๐ Experience: 0โ2 Years
๐ Skills: Full Stack Development, Nutanix Architecture, Cloud Computing
๐ Education: 15 years full-time education
โฐโโค Apply: https://www.offcampusjobsindia.com/jobs/accenture-full-stack-engineer-off-campus-gurugram
2๏ธโฃ Application Support Engineer
๐ฐ Salary: โน3.8 โ โน4.2 LPA
๐ Location: As per Accenture job posting
๐ Eligibility: Freshers / Early Career
๐ Skills: Application Support & Troubleshooting
โฐโโค Apply: https://www.offcampusjobsindia.com/jobs/accenture-application-support-engineer-off-campus-jobs-mumbai-2024-2028
3๏ธโฃ Custom Software Engineer โ Python
๐ฐ Salary: ~โน8 LPA
๐ Location: Hyderabad
๐ Experience: 0โ2 Years
๐ Skills: Python, OOP, Software Development, Debugging
๐ Education: 15 years full-time education
โฐโโค Apply: http://offcampusjobsindia.com/jobs/accenture-custom-software-engineer-off-campus-hyderabad
Qualification: B.E / B.Tech, M.E / M.Tech, BCA / MCA, BBA / MBA, B.Com / M.Com, BA / MA, B.Sc / M.Sc (All Branches)
Eligible Passout Batches: 2026, 2025, 2024, 2023, 2022, 2021 & 2020
๐ผ Job Details:
1๏ธโฃ Full Stack Engineer
๐ฐ Salary: โน6.5 โ โน11.2 LPA
๐ Location: Gurugram
๐ Experience: 0โ2 Years
๐ Skills: Full Stack Development, Nutanix Architecture, Cloud Computing
๐ Education: 15 years full-time education
โฐโโค Apply: https://www.offcampusjobsindia.com/jobs/accenture-full-stack-engineer-off-campus-gurugram
2๏ธโฃ Application Support Engineer
๐ฐ Salary: โน3.8 โ โน4.2 LPA
๐ Location: As per Accenture job posting
๐ Eligibility: Freshers / Early Career
๐ Skills: Application Support & Troubleshooting
โฐโโค Apply: https://www.offcampusjobsindia.com/jobs/accenture-application-support-engineer-off-campus-jobs-mumbai-2024-2028
3๏ธโฃ Custom Software Engineer โ Python
๐ฐ Salary: ~โน8 LPA
๐ Location: Hyderabad
๐ Experience: 0โ2 Years
๐ Skills: Python, OOP, Software Development, Debugging
๐ Education: 15 years full-time education
โฐโโค Apply: http://offcampusjobsindia.com/jobs/accenture-custom-software-engineer-off-campus-hyderabad
Salesforce Hiring Interns ๐ฅ
Role : Software Engineer Intern
Batch : 2027 / 2028
Location : Hyderabad / Bengaluru
Apply now ๐๏ธ
https://www.offcampusjobsindia.com/jobs/salesforce-summer-2027-software-engineer-internship-bangalore
โโโโโโโโโโโโโโโโโโโโ
๐ OFF CAMPUS JOBS PRO
๐ฅ 50+ Freshers & Early-Career Jobs Daily
๐ผ IT Jobs โข Internships โข Off-Campus Drives
๐ฏ Verified Jobs โข Premium Opportunities โข Placement Updates
๐ Get 50+ Job Updates Daily โ Join Premium
๐ https://offcampusjobsindia.com/premium
Role : Software Engineer Intern
Batch : 2027 / 2028
Location : Hyderabad / Bengaluru
Apply now ๐๏ธ
https://www.offcampusjobsindia.com/jobs/salesforce-summer-2027-software-engineer-internship-bangalore
โโโโโโโโโโโโโโโโโโโโ
๐ OFF CAMPUS JOBS PRO
๐ฅ 50+ Freshers & Early-Career Jobs Daily
๐ผ IT Jobs โข Internships โข Off-Campus Drives
๐ฏ Verified Jobs โข Premium Opportunities โข Placement Updates
๐ Get 50+ Job Updates Daily โ Join Premium
๐ https://offcampusjobsindia.com/premium
Offcampusjobsindia
Salesforce Summer 2027 Software Engineer Internship | Bangalore, India | Freshers 2027
Discover the Salesforce Summer 2027 Software Engineer Internship in Bangalore. A prime opportunity for 2027 batch students to kickstart their tech career, gain hands-on experience, and innovate with a global CRM leader. Apply now!
Softobiz Hiring Interns ๐ฅ
Role : AI Engineer Intern
Batch : 2026 / 2027
Location : Kochi, Kerala
Apply now ๐๏ธ
https://www.offcampusjobsindia.com/jobs/softobiz-ai-engineer-intern-off-campus-job-kochi
โโโโโโโโโโโโโโโโโโโโ
๐ OFF CAMPUS JOBS PRO
๐ฅ 50+ Freshers & Early-Career Jobs Daily
๐ผ IT Jobs โข Internships โข Off-Campus Drives
๐ฏ Verified Jobs โข Premium Opportunities โข Placement Updates
๐ Premium Membership โ โน299 Lifetime
๐ฅ Get 50+ Job Updates Daily + Premium Opportunities
๐ https://offcampusjobsindia.com/premium
Role : AI Engineer Intern
Batch : 2026 / 2027
Location : Kochi, Kerala
Apply now ๐๏ธ
https://www.offcampusjobsindia.com/jobs/softobiz-ai-engineer-intern-off-campus-job-kochi
โโโโโโโโโโโโโโโโโโโโ
๐ OFF CAMPUS JOBS PRO
๐ฅ 50+ Freshers & Early-Career Jobs Daily
๐ผ IT Jobs โข Internships โข Off-Campus Drives
๐ฏ Verified Jobs โข Premium Opportunities โข Placement Updates
๐ Premium Membership โ โน299 Lifetime
๐ฅ Get 50+ Job Updates Daily + Premium Opportunities
๐ https://offcampusjobsindia.com/premium
Company : Icertis
Role : SDET Intern
Batch: 2027, 2028, 2029
Apply here: https://iaaviz.fa.ocs.oraclecloud.com/hcmUI/CandidateExperience/en/sites/Jobs-at-Icertis/job/7563
Role : SDET Intern
Batch: 2027, 2028, 2029
Apply here: https://iaaviz.fa.ocs.oraclecloud.com/hcmUI/CandidateExperience/en/sites/Jobs-at-Icertis/job/7563
Icertis
Intern, SDET
Icertis Solutions Private Limited is seeking an Intern, SDET for its Enterprise Release & Quality department. This role is ideal for a BTech student or recent graduate with a passion for AI, Python, and problem-solving.
๐จ Juspay Hiring: Software Development Engineer โ Backend | Bangalore ๐ป
_๐ผ Role: Software Development Engineer โ Backend
_๐ Location: Bangalore, India
_๐ Experience: 0โ2 Years
๐ฐ Salary: โน16 LPA Base | Up to โน27 LPA Total Compensation
๐น Salary Breakdown:
โข Base Salary: โน16 LPA
โข Relocation/Signing Bonus: โน1 Lakh
โข Retention Bonus: โน8 Lakh
โข Additional Bonus: โน2 Lakh
โข Total Compensation: โน27 LPA
โข Stock: No stocks
๐ Apply Here:
https://joinus.juspay.in/?jobId=DEV-BE01
_๐ผ Role: Software Development Engineer โ Backend
_๐ Location: Bangalore, India
_๐ Experience: 0โ2 Years
๐ฐ Salary: โน16 LPA Base | Up to โน27 LPA Total Compensation
๐น Salary Breakdown:
โข Base Salary: โน16 LPA
โข Relocation/Signing Bonus: โน1 Lakh
โข Retention Bonus: โน8 Lakh
โข Additional Bonus: โน2 Lakh
โข Total Compensation: โน27 LPA
โข Stock: No stocks
๐ Apply Here:
https://joinus.juspay.in/?jobId=DEV-BE01
๐ผ Accenture โ Application Support Engineer
๐ India
๐ 15 Years Full-Time Education
๐ผ Experience: 0โ2 Years
๐ Skills: Python, Generative AI, AI & Data Solution Architecture
๐ฐ CTC: โน8โ12 LPA (Approx.)
๐ Apply Now:
https://www.accenture.com/in-en/careers/jobdetails?id=ATCI-5715393-S2063558_en
๐ฉ Exam Mail Confirmed โ
๐ OFFCAMPUSJOBSINDIA PREMIUM โ โน299 LIFETIME
๐ฅ Get early access to premium job openings
โ Freshers & Experienced Jobs
โ Early Job Alerts
โ Referral & Hiring Updates
๐ Join Premium:
https://offcampusjobsindia.com/premium
๐ India
๐ 15 Years Full-Time Education
๐ผ Experience: 0โ2 Years
๐ Skills: Python, Generative AI, AI & Data Solution Architecture
๐ฐ CTC: โน8โ12 LPA (Approx.)
๐ Apply Now:
https://www.accenture.com/in-en/careers/jobdetails?id=ATCI-5715393-S2063558_en
๐ฉ Exam Mail Confirmed โ
๐ OFFCAMPUSJOBSINDIA PREMIUM โ โน299 LIFETIME
๐ฅ Get early access to premium job openings
โ Freshers & Experienced Jobs
โ Early Job Alerts
โ Referral & Hiring Updates
๐ Join Premium:
https://offcampusjobsindia.com/premium
๐ผ American Express โ Software Engineer I
๐ Chennai, India
๐ Bachelor's/Master's in Computer Science, Computer Engineering, IT or related field
๐ผ Experience: 0โ3 Years
๐ Skills: Java, React, JavaScript, SQL, Microservices, REST APIs, Git, AWS/GCP, Databases
๐ฐ CTC: โน15โ25 LPA (Expected)
๐ Apply Now:
https://egup.fa.us2.oraclecloud.com/hcmUI/CandidateExperience/en/sites/CX_1/job/26012390
๐ Chennai, India
๐ Bachelor's/Master's in Computer Science, Computer Engineering, IT or related field
๐ผ Experience: 0โ3 Years
๐ Skills: Java, React, JavaScript, SQL, Microservices, REST APIs, Git, AWS/GCP, Databases
๐ฐ CTC: โน15โ25 LPA (Expected)
๐ Apply Now:
https://egup.fa.us2.oraclecloud.com/hcmUI/CandidateExperience/en/sites/CX_1/job/26012390
๐จ ๐ฌ๐ข๐จ'๐ฅ๐ ๐ ๐๐ฆ๐ฆ๐๐ก๐ ๐ข๐๐-๐๐๐ ๐ฃ๐จ๐ฆ ๐๐ข๐ ๐ข๐ฃ๐ฃ๐ข๐ฅ๐ง๐จ๐ก๐๐ง๐๐๐ฆ! ๐จ
๐ ๐ง๐๐ ๐๐๐ฅ๐ ๐ง๐ฅ๐จ๐ง๐:
While you're manually searching LinkedIn, Naukri, company career pages & job portals...
Our community brings the latest ๐๐ข๐๐ฆ, ๐๐ก๐ง๐๐ฅ๐ก๐ฆ๐๐๐ฃ๐ฆ & ๐ฃ๐๐๐๐๐ ๐๐ก๐ง ๐๐ฅ๐๐ฉ๐๐ฆ directly to you! โก
๐ ๐ช๐๐๐ง ๐ฌ๐ข๐จ ๐๐๐ง:
๐ฅ Latest Off-Campus Hiring Updates
๐ผ Fresher & Experienced Job Opportunities
๐ Internship & Placement Alerts
๐ป Software/IT & Engineering Jobs
โก Fast Job Notifications
๐ Direct Application Links
๐จ ๐ช๐๐๐๐ ๐ข๐ง๐๐๐ฅ๐ฆ ๐๐ฅ๐ ๐ฆ๐ง๐๐๐ ๐ฆ๐๐๐ฅ๐๐๐๐ก๐:
Your next opportunity could already be live.
โณ Don't wait until the position is filled.
The earlier you apply, the better your chances.
๐ ๐ข๐๐๐๐๐ ๐ฃ๐จ๐ฆ๐๐ข๐๐ฆ๐๐ก๐๐๐ ๐ฃ๐ฅ๐๐ ๐๐จ๐ โ โน๐ฎ๐ต๐ต ๐๐๐๐๐ง๐๐ ๐
๐ Early access to premium job opportunities
โก Early job alerts
๐ฅ 50+ premium jobs & hiring updates
๐ฏ Fresher & experienced opportunities
๐ Direct application links
๐ ๐๐ข๐๐ก ๐ฃ๐ฅ๐๐ ๐๐จ๐ :
https://www.offcampusjobsindia.com/premium
โ How many job opportunities have you missed simply because you found them too late? ๐
๐ ๐ง๐๐ ๐๐๐ฅ๐ ๐ง๐ฅ๐จ๐ง๐:
While you're manually searching LinkedIn, Naukri, company career pages & job portals...
Our community brings the latest ๐๐ข๐๐ฆ, ๐๐ก๐ง๐๐ฅ๐ก๐ฆ๐๐๐ฃ๐ฆ & ๐ฃ๐๐๐๐๐ ๐๐ก๐ง ๐๐ฅ๐๐ฉ๐๐ฆ directly to you! โก
๐ ๐ช๐๐๐ง ๐ฌ๐ข๐จ ๐๐๐ง:
๐ฅ Latest Off-Campus Hiring Updates
๐ผ Fresher & Experienced Job Opportunities
๐ Internship & Placement Alerts
๐ป Software/IT & Engineering Jobs
โก Fast Job Notifications
๐ Direct Application Links
๐จ ๐ช๐๐๐๐ ๐ข๐ง๐๐๐ฅ๐ฆ ๐๐ฅ๐ ๐ฆ๐ง๐๐๐ ๐ฆ๐๐๐ฅ๐๐๐๐ก๐:
Your next opportunity could already be live.
โณ Don't wait until the position is filled.
The earlier you apply, the better your chances.
๐ ๐ข๐๐๐๐๐ ๐ฃ๐จ๐ฆ๐๐ข๐๐ฆ๐๐ก๐๐๐ ๐ฃ๐ฅ๐๐ ๐๐จ๐ โ โน๐ฎ๐ต๐ต ๐๐๐๐๐ง๐๐ ๐
๐ Early access to premium job opportunities
โก Early job alerts
๐ฅ 50+ premium jobs & hiring updates
๐ฏ Fresher & experienced opportunities
๐ Direct application links
๐ ๐๐ข๐๐ก ๐ฃ๐ฅ๐๐ ๐๐จ๐ :
https://www.offcampusjobsindia.com/premium
โ How many job opportunities have you missed simply because you found them too late? ๐