from bisect import bisect_left, bisect_right
def frogs(X, S, Y):
Y.sort()
results = []
for x, s in zip(X, S):
left_bound = x - s
right_bound = x + s
left_index = bisect_left(Y, left_bound)
right_index = bisect_right(Y, right_bound)
num_flies = right_index - left_index
results.append(num_flies)
return results
def frogs(X, S, Y):
Y.sort()
results = []
for x, s in zip(X, S):
left_bound = x - s
right_bound = x + s
left_index = bisect_left(Y, left_bound)
right_index = bisect_right(Y, right_bound)
num_flies = right_index - left_index
results.append(num_flies)
return results
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Hiring Alert ๐จ
WNS is inviting applications for Inventory Management Role !!
Eligibility Criteria & Requirements:
- Qualifications: Bachelor's in Commerce /
Master's in Commerce Only
0-2 Years of experience .
Candidate should be comfortable in working from office and night shift.
Candidate should be proficient in English communication.
Work location- Sec 30, Gurugram, Haryana
Interested candidates can share their Raj.kumar@wns.com
โIMMEDIATE JOINERS PREFDEREDโ
Please share details :
Total Experience:
Current CTC:
Notice Period:
Okay with Night shift :
WNS is inviting applications for Inventory Management Role !!
Eligibility Criteria & Requirements:
- Qualifications: Bachelor's in Commerce /
Master's in Commerce Only
0-2 Years of experience .
Candidate should be comfortable in working from office and night shift.
Candidate should be proficient in English communication.
Work location- Sec 30, Gurugram, Haryana
Interested candidates can share their Raj.kumar@wns.com
โIMMEDIATE JOINERS PREFDEREDโ
Please share details :
Total Experience:
Current CTC:
Notice Period:
Okay with Night shift :
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Avalara is hiring Software Engineer
For 2023, 2022, 2021 grads
Expected CTC - 30LPA
https://careersind-avalara.icims.com/jobs/12400/job
For 2023, 2022, 2021 grads
Expected CTC - 30LPA
https://careersind-avalara.icims.com/jobs/12400/job
India Careers
Software Engineer in Pune, Maharashtra | Careers at Pune
It is mandatory to apply through this job link for your application to be considered. Failure to do so will result in your candidature not being advanced.
We are looking for a software engineer with services/systems design and hands on experience. This teamโฆ
We are looking for a software engineer with services/systems design and hands on experience. This teamโฆ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Rupeek
๐ Job Title: SDE 1
โ๐ป YOE: 2022 and 2023 grads
โก๏ธ Apply: https://docs.google.com/forms/d/e/1FAIpQLSfpRnH8ncg8QN_hHGXw2Jek9uiLBtixmsYoXqMvOUpxlJA_tA/viewform
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://docs.google.com/forms/d/e/1FAIpQLSfpRnH8ncg8QN_hHGXw2Jek9uiLBtixmsYoXqMvOUpxlJA_tA/viewform
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)
Accenture Bulk Hiring .
Customer Support Associate - UK & US Clients.
Hiring 300 candidates for Accenture Bengaluru, Mumbai and Delhi NCR offices
Any Batch , Any degree is eligible
Package is 3.5-6.5 Lpa
Apply link :- https://bit.ly/3yr52zo
Guys Donโt miss the opportunity.
Customer Support Associate - UK & US Clients.
Hiring 300 candidates for Accenture Bengaluru, Mumbai and Delhi NCR offices
Any Batch , Any degree is eligible
Package is 3.5-6.5 Lpa
Apply link :- https://bit.ly/3yr52zo
Guys Donโt miss the opportunity.
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
sync labs is hiring Software Engineer
Location - Hyderabad
For 2021 grads
https://www.ycombinator.com/companies/sync-labs/jobs/EMKw9vm-software-engineer-infrastructure
Location - Hyderabad
For 2021 grads
https://www.ycombinator.com/companies/sync-labs/jobs/EMKw9vm-software-engineer-infrastructure
Y Combinator
software engineer, infrastructure at sync labs
at sync. we train state-of-the-art controllable video generation models, build simple + intuitive products to interface w/ them best, and serve inference at huge scale.
weโre looking for an exceptional **Infrastructure Engineer** to help us scale our APIโฆ
weโre looking for an exceptional **Infrastructure Engineer** to help us scale our APIโฆ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
long long a, b;
cin >> a;
vector<long long> n(a);
for (long long i = 0; i < a; ++i)
cin >> n[i];
cin >> b;
vector<long long> r(b);
for (long long i = 0; i < b; ++i)
cin >> r[i];
vector<long long> d(r.begin(), r.begin() + a);
d.insert(d.end(), r.begin(), r.end());
vector<long long> initial_diff;
initial_diff.reserve(a);
for (long long i = 0; i < a; ++i)
initial_diff.push_back(abs(n[i] - d[i]));
if (all_of(initial_diff.begin() + 1, initial_diff.end(), &
{
return x == initial_diff[0]; }))
{
cout << initial_diff[0] << endl;
}
else
{
for (long long i = 1; i < b; ++i) {
vector<long long> window(d.begin() + i, d.begin() + i + a);
vector<long long> diff;
diff.reserve(a);
transform(n.begin(), n.end(), window.begin(), back_inserter(diff), [](long long x, long long y)
{
return abs(x - y); });
if (all_of(diff.begin() + 1, diff.end(), &
{
return x == diff[0]; }))
{
cout << diff[0] << endl;
break;
}
}
}
return 0;
}
Morgan Stanley โ
#include <vector>
#include <algorithm>
using namespace std;
int main() {
long long a, b;
cin >> a;
vector<long long> n(a);
for (long long i = 0; i < a; ++i)
cin >> n[i];
cin >> b;
vector<long long> r(b);
for (long long i = 0; i < b; ++i)
cin >> r[i];
vector<long long> d(r.begin(), r.begin() + a);
d.insert(d.end(), r.begin(), r.end());
vector<long long> initial_diff;
initial_diff.reserve(a);
for (long long i = 0; i < a; ++i)
initial_diff.push_back(abs(n[i] - d[i]));
if (all_of(initial_diff.begin() + 1, initial_diff.end(), &
{
return x == initial_diff[0]; }))
{
cout << initial_diff[0] << endl;
}
else
{
for (long long i = 1; i < b; ++i) {
vector<long long> window(d.begin() + i, d.begin() + i + a);
vector<long long> diff;
diff.reserve(a);
transform(n.begin(), n.end(), window.begin(), back_inserter(diff), [](long long x, long long y)
{
return abs(x - y); });
if (all_of(diff.begin() + 1, diff.end(), &
{
return x == diff[0]; }))
{
cout << diff[0] << endl;
break;
}
}
}
return 0;
}
Morgan Stanley โ
#include <iostream>
#include <string>
using namespace std;
string getNextSequence(const string &s) {
string result = "";
int count = 1;
for (size_t i = 1; i <= s.length(); ++i) {
if (i < s.length() && s[i] == s[i - 1]) {
++count;
} else {
result += to_string(count) + s[i - 1];
count = 1;
}
}
return result;
}
string getNthPasscode(long long n) {
if (n == 1) {
return "1";
}
string result = "1";
for (long long i = 2; i <= n; ++i) {
result = getNextSequence(result);
}
return result;
}
int main() {
long long smartCardNumber;
cin >> smartCardNumber;
string passcode = getNthPasscode(smartCardNumber);
cout << passcode << endl;
return 0;
}
Morgan Stanley โ
#include <string>
using namespace std;
string getNextSequence(const string &s) {
string result = "";
int count = 1;
for (size_t i = 1; i <= s.length(); ++i) {
if (i < s.length() && s[i] == s[i - 1]) {
++count;
} else {
result += to_string(count) + s[i - 1];
count = 1;
}
}
return result;
}
string getNthPasscode(long long n) {
if (n == 1) {
return "1";
}
string result = "1";
for (long long i = 2; i <= n; ++i) {
result = getNextSequence(result);
}
return result;
}
int main() {
long long smartCardNumber;
cin >> smartCardNumber;
string passcode = getNthPasscode(smartCardNumber);
cout << passcode << endl;
return 0;
}
Morgan Stanley โ
๐1
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
long long findTeaserLevels(vector<long long>& levelValues, long long threshold) {
sort(levelValues.begin(), levelValues.end());
long long closestSum = LLONG_MIN;
for (size_t i = 0; i < levelValues.size() - 2; ++i) {
size_t left = i + 1;
size_t right = levelValues.size() - 1;
while (left < right) {
long long currentSum = levelValues[i] + levelValues[left] + levelValues[right];
if (currentSum <= threshold) {
if (currentSum > closestSum) {
closestSum = currentSum;
}
++left;
} else {
--right;
}
}
}
return closestSum == LLONG_MIN ? -1 : closestSum;
}
int main() {
int levelValuesSize;
cin >> levelValuesSize;
vector<long long> levelValues(levelValuesSize);
for (int i = 0; i < levelValuesSize; ++i) {
cin >> levelValues[i];
}
long long thresholdValue;
cin >> thresholdValue;
long long result = findTeaserLevels(levelValues, thresholdValue);
if (result == -1) {
cout << "NA" << endl;
} else {
cout << result << endl;
}
return 0;
}
Morgan Stanley โ
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
long long findTeaserLevels(vector<long long>& levelValues, long long threshold) {
sort(levelValues.begin(), levelValues.end());
long long closestSum = LLONG_MIN;
for (size_t i = 0; i < levelValues.size() - 2; ++i) {
size_t left = i + 1;
size_t right = levelValues.size() - 1;
while (left < right) {
long long currentSum = levelValues[i] + levelValues[left] + levelValues[right];
if (currentSum <= threshold) {
if (currentSum > closestSum) {
closestSum = currentSum;
}
++left;
} else {
--right;
}
}
}
return closestSum == LLONG_MIN ? -1 : closestSum;
}
int main() {
int levelValuesSize;
cin >> levelValuesSize;
vector<long long> levelValues(levelValuesSize);
for (int i = 0; i < levelValuesSize; ++i) {
cin >> levelValues[i];
}
long long thresholdValue;
cin >> thresholdValue;
long long result = findTeaserLevels(levelValues, thresholdValue);
if (result == -1) {
cout << "NA" << endl;
} else {
cout << result << endl;
}
return 0;
}
Morgan Stanley โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Bread Financial is hiring for Full stack developer (0-2 years)
Expected Salary: 6-12 LPA
Apply here:
https://alliancedata.wd5.myworkdayjobs.com/breadfinancial_India/job/Bangalore-India/Full-stack-developer_R1009734
Expected Salary: 6-12 LPA
Apply here:
https://alliancedata.wd5.myworkdayjobs.com/breadfinancial_India/job/Bangalore-India/Full-stack-developer_R1009734
๐Optionlogy is hiring for Software Engineer Intern
Stipend: 25K-30K per month
Salary: 6-10 LPA
Apply here:
https://linkedin.com/jobs/view/3935949453/
Stipend: 25K-30K per month
Salary: 6-10 LPA
Apply here:
https://linkedin.com/jobs/view/3935949453/
Linkedin
Optionlogy hiring Software Engineer Intern in India | LinkedIn
Posted 9:10:53 AM. Optionlogy is an auto trading platform that provides innovative tools for everyday traders to findโฆSee this and similar jobs on LinkedIn.
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Wipro is Inviting applications of (Analyst) for Gurgaon office.
Candidates with an experience range of 0 - 1 yr. Only, comfortable with US shifts, can send their CV's to ayaan.hossain@wipro.com with the below details.
Role- Analyst
Desired Candidate Profile:
Should be flexible working in Shifts.
Experience- 0 yrs. to 1 yrs.
Qualification- MBA/M.com/ B.com/BBA.
Location- Gurgaon (Work From Office Only)
Looking for Immediate Joiners
Candidates with an experience range of 0 - 1 yr. Only, comfortable with US shifts, can send their CV's to ayaan.hossain@wipro.com with the below details.
Role- Analyst
Desired Candidate Profile:
Should be flexible working in Shifts.
Experience- 0 yrs. to 1 yrs.
Qualification- MBA/M.com/ B.com/BBA.
Location- Gurgaon (Work From Office Only)
Looking for Immediate Joiners
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Genpact is hiring !
Skill set- P&C Insurance
Experience - 0-3 years (Freshers can Apply)
Location - Noida
Shift- APAC shift
Qualification - Any except technical
GOOD COMMUNICATION REQUIRED.
Note- Interested candidate can share their CV at rangoli.bhatt@genpact.com with the subject line "Application for Insurance "
Skill set- P&C Insurance
Experience - 0-3 years (Freshers can Apply)
Location - Noida
Shift- APAC shift
Qualification - Any except technical
GOOD COMMUNICATION REQUIRED.
Note- Interested candidate can share their CV at rangoli.bhatt@genpact.com with the subject line "Application for Insurance "