int findmaximumPackages(vector<int>&arr)
{
int n = arr.size();
int mx = *max_element(arr.begin(), arr.end());
mx = mx * 2;
int res = 0;
map<int, int>mp;
for (auto it : arr) {
mp[it]++;
}
for (int i = 1; i <= mx; i++) {
int sm = 0;
for (int j = 1; j <= (i - 1) / 2; j++) {
sm += min(mp[j], mp[i - j]);
}
if (i % 2 == 0) {
sm += (mp[i / 2] / 2);
}
res = max(res, mp[i] + sm);
}
return res;
}
Amazon โ
{
int n = arr.size();
int mx = *max_element(arr.begin(), arr.end());
mx = mx * 2;
int res = 0;
map<int, int>mp;
for (auto it : arr) {
mp[it]++;
}
for (int i = 1; i <= mx; i++) {
int sm = 0;
for (int j = 1; j <= (i - 1) / 2; j++) {
sm += min(mp[j], mp[i - j]);
}
if (i % 2 == 0) {
sm += (mp[i / 2] / 2);
}
res = max(res, mp[i] + sm);
}
return res;
}
Amazon โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
RaajKuumar Tiwari on LinkedIn: #internship #hiring #hiringnow #hiringintern #backenddeveloperโฆ
๐ Exciting Opportunity: Backend Developer Internship in Node.js (3-Month, Remote Internship) ๐
Are you a final-year B.Tech or BE student in CS/IT looking toโฆ
Are you a final-year B.Tech or BE student in CS/IT looking toโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
DELLOITE BIGGEST OFF CAMPUS HIRING FOR 2025 BATCH
Eligibility
2025 graduates of B.E./B.Tech /M.E./M.Tech / MCA - Cyber Security, Information Technology, Computer Science and/or other ancillary Circuital Branches
Apply link : https://usrecruiting.deloitte.com/national-level-assessment-deloitte-us-india-offices?#subpage/engineeringcyber/content/211390088
Eligibility
2025 graduates of B.E./B.Tech /M.E./M.Tech / MCA - Cyber Security, Information Technology, Computer Science and/or other ancillary Circuital Branches
Apply link : https://usrecruiting.deloitte.com/national-level-assessment-deloitte-us-india-offices?#subpage/engineeringcyber/content/211390088
Deloitte
NLA by Deloitte US-India Offices
Deloitte US-India Offices presents National Level Assessment for all final-year students looking for career opportunities.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Google Forms: Sign-in | Anovora Expeditions Labs
๐ Join Our Team as an Engineer Intern at Annovora Expeditions Labs! ๐
Are you passionate about technology innovation and eager to solve real-world challenges? Annovora Expeditions Labs is looking for talented and driven Engineer Interns to work exclusivelyโฆ
Are you passionate about technology innovation and eager to solve real-world challenges? Annovora Expeditions Labs is looking for talented and driven Engineer Interns to work exclusivelyโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: DoSelect (Infoedge)
Different intern roles are there (6 months)
Apply: https://docs.google.com/forms/d/e/1FAIpQLSeyzdHcvzDKtq510sRy6usSsDut4ZLIeQKWeKK88S7Gh8Vusw/viewform
Different intern roles are there (6 months)
Apply: https://docs.google.com/forms/d/e/1FAIpQLSeyzdHcvzDKtq510sRy6usSsDut4ZLIeQKWeKK88S7Gh8Vusw/viewform
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : CoinDCX
Challenge Name : Unfold Hackathon 2024
Eligibility : All College Students + Working Professionals
Prizes : Bounties worth $100K + opportunities at CoinDCX and various companies
Link : https://bit.ly/coindcxunfold
Challenge Name : Unfold Hackathon 2024
Eligibility : All College Students + Working Professionals
Prizes : Bounties worth $100K + opportunities at CoinDCX and various companies
Link : https://bit.ly/coindcxunfold
unfold2024.devfolio.co
Unfold 2024 | Devfolio
Build for web3. Innovate the future.
๐คฎ1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
#include<bits/stdc++.h>
using namespace std;
long long m = 100000000000000000;
int minOperations(vector<int> &arr)
{
int n=arr.size();
if(n == 1) return 0;
if(n == 2) return arr[0]+arr[1]<0;
int cnt = 0;
long long prev,curr,next;
prev = m;
curr = arr[0];
next = arr[1];
int ind = 1;
while(ind<n)
{
if(prev+curr+next<0 || curr+next<0)
{
prev = curr;
curr = m;
cnt++;
}else{
prev = curr;
curr = next;
}
if(ind<n) next = arr[ind+1];
ind++;
}
return cnt;
}
UKG โ
Make the Array Positive
def find_consecutive_sets(n):
result = []
count = 0
for i in range(1, n//2 + 2):
sum_ = 0
temp = []
for j in range(i, n + 1):
sum_ += j
temp.append(j)
if sum_ == n:
result.append(temp[:])
count += 1
break
elif sum_ > n:
break
result.reverse()
for seq in result:
print(" ".join(map(str, seq)))
print(count)
n = int(input())
find_consecutive_sets(n)
Deloitte โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐BNP Paribas is hiring for Software Engineer - Java
Experience: 0 - 1 years
Expected Salary: 6-12 LPA
Apply here: https://group.bnpparibas/en/careers/job-offer/software-engineer-java?SRC=LINKEDIN
๐Apna is hiring for Software Engineer
Experience: 0 - 1 years
Expected Salary: 15-30 LPA
Apply here: https://www.linkedin.com/jobs/view/4073181320/?alternateChannel=search
๐EazyDiner is hiring for DevOps Engineer
Experience: 0 - 1 years
Expected Salary: 6-12 LPA
Apply here: https://www.linkedin.com/jobs/view/4074724831/?alternateChannel=search
Experience: 0 - 1 years
Expected Salary: 6-12 LPA
Apply here: https://group.bnpparibas/en/careers/job-offer/software-engineer-java?SRC=LINKEDIN
๐Apna is hiring for Software Engineer
Experience: 0 - 1 years
Expected Salary: 15-30 LPA
Apply here: https://www.linkedin.com/jobs/view/4073181320/?alternateChannel=search
๐EazyDiner is hiring for DevOps Engineer
Experience: 0 - 1 years
Expected Salary: 6-12 LPA
Apply here: https://www.linkedin.com/jobs/view/4074724831/?alternateChannel=search