#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
long findInterestingPairs(vector<int>& arr, int sumVal) {
sort(arr.begin(), arr.end());
int val = sumVal / 2;
long cc = 0;
int ind = -1;
for (int i = 0; i < arr.size(); ++i) {
if (arr[i] == val) {
cc++;
if (ind == -1) {
ind = i;
}
}
}
if (ind == -1) {
return 0;
}
return ind * cc + ((cc - 1) * cc) / 2;
}.
De shaw
Intersecting Pairsโ
#include <vector>
#include <algorithm>
using namespace std;
long findInterestingPairs(vector<int>& arr, int sumVal) {
sort(arr.begin(), arr.end());
int val = sumVal / 2;
long cc = 0;
int ind = -1;
for (int i = 0; i < arr.size(); ++i) {
if (arr[i] == val) {
cc++;
if (ind == -1) {
ind = i;
}
}
}
if (ind == -1) {
return 0;
}
return ind * cc + ((cc - 1) * cc) / 2;
}.
De shaw
Intersecting Pairsโ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Accelya
๐ Job Title: SDE 1
โ๐ป YOE: 2022 and 2023 grads
โก๏ธ Apply: https://accelya.wd103.myworkdayjobs.com/en-US/Careers/job/Engineer-I---Software-Development_JR100382
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐ Job Title: SDE 1
โ๐ป YOE: 2022 and 2023 grads
โก๏ธ Apply: https://accelya.wd103.myworkdayjobs.com/en-US/Careers/job/Engineer-I---Software-Development_JR100382
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
Myworkdayjobs
Engineer I - Software Development
For more than 40 years, Accelya has been the industryโs partner for change, simplifying airline financial and commercial processes and empowering the air transport community to take better control of the future. Whether partnering with IATA on industry-wideโฆ
Two friends problem โ
Pass the baton โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include<bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
vector<vector<vector<string>>> dp;
vector<string> solve(string& alice, string& bob, int i, int j) {
if(i == alice.size() || j == bob.size()) {
return {""};
}
if(dp[i][j].size() != 0) {
return dp[i][j];
}
if(alice[i] == bob[j]) {
vector<string> tmp = solve(alice, bob, i+1, j+1);
for(string& s : tmp) {
s = alice[i] + s;
}
return dp[i][j] = tmp;
}
vector<string> left = solve(alice, bob, i+1, j);
vector<string> right = solve(alice, bob, i, j+1);
if(left[0].size() > right[0].size()) {
return dp[i][j] = left;
}
if(left[0].size() < right[0].size()) {
return dp[i][j] = right;
}
left.insert(left.end(), right.begin(), right.end());
sort(left.begin(), left.end());
left.erase(unique(left.begin(), left.end()), left.end());
return dp[i][j] = left;
}
int main() {
int T;
cin >> T;
while(T--) {
string alice, bob;
cin >> alice >> bob;
dp = vector<vector<vector<string>>>(alice.size(), vector<vector<string>>(bob.size()));
vector<string> trips = solve(alice, bob, 0, 0);
for(string& trip : trips) {
cout << trip << endl;
}
}
return 0;
}
INFAthon 4.0โ
using namespace std;
const int MOD = 1e9 + 7;
vector<vector<vector<string>>> dp;
vector<string> solve(string& alice, string& bob, int i, int j) {
if(i == alice.size() || j == bob.size()) {
return {""};
}
if(dp[i][j].size() != 0) {
return dp[i][j];
}
if(alice[i] == bob[j]) {
vector<string> tmp = solve(alice, bob, i+1, j+1);
for(string& s : tmp) {
s = alice[i] + s;
}
return dp[i][j] = tmp;
}
vector<string> left = solve(alice, bob, i+1, j);
vector<string> right = solve(alice, bob, i, j+1);
if(left[0].size() > right[0].size()) {
return dp[i][j] = left;
}
if(left[0].size() < right[0].size()) {
return dp[i][j] = right;
}
left.insert(left.end(), right.begin(), right.end());
sort(left.begin(), left.end());
left.erase(unique(left.begin(), left.end()), left.end());
return dp[i][j] = left;
}
int main() {
int T;
cin >> T;
while(T--) {
string alice, bob;
cin >> alice >> bob;
dp = vector<vector<vector<string>>>(alice.size(), vector<vector<string>>(bob.size()));
vector<string> trips = solve(alice, bob, 0, 0);
for(string& trip : trips) {
cout << trip << endl;
}
}
return 0;
}
INFAthon 4.0โ
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
int maxSumOptimalArrangement(vector<int>& coins) {
vector<int> positive;
vector<int> negative;
for (int coin : coins) {
if (coin >= 0)
positive.push_back(coin);
else
negative.push_back(coin);
}
sort(positive.rbegin(), positive.rend());
sort(negative.begin(), negative.end());
int totalSum = 0;
for (size_t i = 0; i < max(positive.size(), negative.size()); ++i) {
if (i < positive.size())
totalSum += positive[i];
if (i < negative.size())
totalSum -= negative[i];
}
return totalSum;
}
};
ZS campus beat code question :
Circuit Board โ
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
int maxSumOptimalArrangement(vector<int>& coins) {
vector<int> positive;
vector<int> negative;
for (int coin : coins) {
if (coin >= 0)
positive.push_back(coin);
else
negative.push_back(coin);
}
sort(positive.rbegin(), positive.rend());
sort(negative.begin(), negative.end());
int totalSum = 0;
for (size_t i = 0; i < max(positive.size(), negative.size()); ++i) {
if (i < positive.size())
totalSum += positive[i];
if (i < negative.size())
totalSum -= negative[i];
}
return totalSum;
}
};
ZS campus beat code question :
Circuit Board โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Software Engineer (Fresher) at Bitcoin Devs Company
1 lakh/ month
https://www.linkedin.com/jobs/view/3906517701
1 lakh/ month
https://www.linkedin.com/jobs/view/3906517701
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Software Engineer Intern at CircoLife
Stipend:
35,000 - 50,000 per month (2/3 candidates required)
Duration of Internship :- 2 months
https://www.linkedin.com/jobs/view/3909114641
Stipend:
35,000 - 50,000 per month (2/3 candidates required)
Duration of Internship :- 2 months
https://www.linkedin.com/jobs/view/3909114641
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Meta (Earlier Facebook) hiring for 2024 Grads
NOTE: Apply with a referral
https://www.metacareers.com/jobs/7330400040375573/
NOTE: Apply with a referral
https://www.metacareers.com/jobs/7330400040375573/
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Python Developer (Bangkok based, relocation provided)
2023 and earlier Graduates with relevant experience can apply
https://careersatagoda.com/job/5815385-python-developer-bangkok-based-relocation-provided/?gh_jid=5815385
2023 and earlier Graduates with relevant experience can apply
https://careersatagoda.com/job/5815385-python-developer-bangkok-based-relocation-provided/?gh_jid=5815385
Careers at Agoda
Jobs - Careers at Agoda
Unfortunately, this job is no longer accepting new applications. Please use the search feature above to check out other opportunities at Agoda. Hear about future opportunities By submitting this form, you understand and agree to our privacy statement andโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Avua
๐ Job Title: Junior Software Engineer
โ๐ป YOE: 2023 and 2024 grads
โก๏ธ Apply: https://www.linkedin.com/jobs/view/3910411454
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐ Job Title: Junior Software Engineer
โ๐ป YOE: 2023 and 2024 grads
โก๏ธ Apply: https://www.linkedin.com/jobs/view/3910411454
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)
โ๏ธZoho Off Campus Drive 2024 Hiring As Quality Analyst | INR 4-8 LPAโ๏ธ
๐จโ๐ปJob Role : Quality Analyst
๐Qualification : Any Degree
๐Batches : 2014 to 2024
๐ฐSalary : 4-8 LPA
โญ๏ธ Apply Fast
https://careers.zohocorp.com/forms/fcc89b5ebd373d598e0224d10f2199d1c60170d7abe5e714c3bca4fb8563ef6c?fbclid=PAZXh0bgNhZW0CMTEAAaYKhZPFyyvmCfkebl40fV5Pv-J7wY50wfpJKLF8N9L6CtkXKfRa38JOmkU_aem_AcUj7T6iCn4XTA1h6m_X0F9Q-qX55gOoZA6STc37s_eUUzbciH2dwtuYGxt8gQ4QgYf2tQM6qp7YGURBmhY6SdGA
๐จโ๐ปJob Role : Quality Analyst
๐Qualification : Any Degree
๐Batches : 2014 to 2024
๐ฐSalary : 4-8 LPA
โญ๏ธ Apply Fast
https://careers.zohocorp.com/forms/fcc89b5ebd373d598e0224d10f2199d1c60170d7abe5e714c3bca4fb8563ef6c?fbclid=PAZXh0bgNhZW0CMTEAAaYKhZPFyyvmCfkebl40fV5Pv-J7wY50wfpJKLF8N9L6CtkXKfRa38JOmkU_aem_AcUj7T6iCn4XTA1h6m_X0F9Q-qX55gOoZA6STc37s_eUUzbciH2dwtuYGxt8gQ4QgYf2tQM6qp7YGURBmhY6SdGA
Zoho Corporation
Hiring | Security Engineers
Experience: 3 years & above Work location: Chennai Job Description: We're looking for experienced candidates with a strong technical background in app
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Oracle is hiring for Technical Analyst 1-Support (0-2 years)
Expected Salary: 6-12 LPA
Apply here:
https://eeho.fa.us2.oraclecloud.com/hcmUI/CandidateExperience/en/sites/jobsearch/job/238709
Expected Salary: 6-12 LPA
Apply here:
https://eeho.fa.us2.oraclecloud.com/hcmUI/CandidateExperience/en/sites/jobsearch/job/238709
Oracle
Technical Analyst 1-Support
Use technical knowledge in the monitoring, support, service request investigation and resolution for specific software, hardware or system solutions and applications.