vector<int> solve(int N, const vector<vector<int>>& A, const vector<vector<int>>& queries) {
vector<int> results;
results.reserve(queries.size());
for (const auto& query : queries) {
int l = query[0];
int r = query[1];
int x = query[2];
int count = 0;
for (int i = l - 1; i < r; ++i) {
if (A[i][1] > x) {
++count;
}
}
results.push_back(count);
}
return results;
}
//Partial 6/10
Tax Payment โ
vector<int> results;
results.reserve(queries.size());
for (const auto& query : queries) {
int l = query[0];
int r = query[1];
int x = query[2];
int count = 0;
for (int i = l - 1; i < r; ++i) {
if (A[i][1] > x) {
++count;
}
}
results.push_back(count);
}
return results;
}
//Partial 6/10
Tax Payment โ
long long OneBlock(int N, vector<int> Arr) {//one block
vector<int> one_indices;
for (int i = 0; i < N; ++i) {
if (Arr[i] == 1) {
one_indices.push_back(i);
}
}
if (one_indices.size() <= 1) {
return 1;
}
long long ways = 1;
for (int i = 1; i < one_indices.size(); ++i) {
int zeros_between_ones = one_indices[i] - one_indices[i - 1] - 1;
ways *= (zeros_between_ones + 1);
}
return ways;
}
string solve(int n, string op[]) {
stack<string> bs, fs;
bs.push("/home");
for(int i = 0; i < n; i++) {
if(op[i] == "back") {
if(bs.size() > 1) {
fs.push(bs.top());
bs.pop();
}
} else if(op[i] == "forward") {
if(!fs.empty()) {
bs.push(fs.top());
fs.pop();
}
} else {
while(!fs.empty()) {
fs.pop();
}
bs.push(bs.top() + "/" + op[i]);
}
}
return bs.top();
}
Browser history โ
stack<string> bs, fs;
bs.push("/home");
for(int i = 0; i < n; i++) {
if(op[i] == "back") {
if(bs.size() > 1) {
fs.push(bs.top());
bs.pop();
}
} else if(op[i] == "forward") {
if(!fs.empty()) {
bs.push(fs.top());
fs.pop();
}
} else {
while(!fs.empty()) {
fs.pop();
}
bs.push(bs.top() + "/" + op[i]);
}
}
return bs.top();
}
Browser history โ
int main() {
int N;
cin >> N;
vector<pair<int, int>> p(N);
for(int i = 0; i < N; i++)
cin >> p[i].first >> p[i].second;
ll wt = 0, ct = 0;
for(int i = 0; i < N) {
if(p[i].first > ct) {
ct = p[i].first;
}
wt += ct + p[i].second - p[i].first;
ct += p[i].second;
}
cout << wt / N << endl;
return 0;
}
Doctor โ
int N;
cin >> N;
vector<pair<int, int>> p(N);
for(int i = 0; i < N; i++)
cin >> p[i].first >> p[i].second;
ll wt = 0, ct = 0;
for(int i = 0; i < N) {
if(p[i].first > ct) {
ct = p[i].first;
}
wt += ct + p[i].second - p[i].first;
ct += p[i].second;
}
cout << wt / N << endl;
return 0;
}
Doctor โ
def solveLC(key, text):
def check(key, subt):
res = []
for i, (a,b) in enumerate(zip(key, subt)):
if a != b:
res.append(i)
if len(res) == 1 or len(res) > 2:
return False
if not res: return True
if res[0] + 1 != res[1]: return False
i = res[0]
return key[i:i+2] == subt[i:i+2][::-1]
res = 0
for i in range(len(text) - len(key) + 1):
if check(key, text[i:i+len(key)]):
res += 1
return res
print(solveLC("moon","monomon"))
print(solveLC("aaa","aaaa"))
Amazon โ
def check(key, subt):
res = []
for i, (a,b) in enumerate(zip(key, subt)):
if a != b:
res.append(i)
if len(res) == 1 or len(res) > 2:
return False
if not res: return True
if res[0] + 1 != res[1]: return False
i = res[0]
return key[i:i+2] == subt[i:i+2][::-1]
res = 0
for i in range(len(text) - len(key) + 1):
if check(key, text[i:i+len(key)]):
res += 1
return res
print(solveLC("moon","monomon"))
print(solveLC("aaa","aaaa"))
Amazon โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
vector<string> solve (const string &s, char d) {
vector<string> r;
stringstream ss (s);
string i;
while (getline (ss, i, d)) {
r.push_back (i);
}
return r;
}
void hola(const string &u, int N, const vector<string> &p, const vector<int> &v) {
vector<string> pts = solve (u, '?');
if (pts.size () != 2) {
cout << "Invalid URL" << endl;
return;
}
string b = pts[0];
string q = pts[1];
vector<string> qp = solve (q, '.');
if (qp.size () > N) {
cout << "Too many parameters" << endl;
return;
}
map<string, int> qm;
for (const string &q : qp) {
vector<string> qps = solve (q, '=');
if (qps.size () != 2) {
cout << "Invalid parameter format" << endl;
return;
}
string k = qps[0];
int v = stoi (qps[1]);
qm[k] = v;
}
cout << b << endl;
bool valid = true;
int c = 0;
for (int i = 0; i < N; i++) {
string pm = p[i];
int rv = v[i];
if (qm.count (pm) == 0) continue;
c++;
if (qm[pm] > rv) valid = false;
}
cout << c << endl;
for (int i = 0; i < N; i++) {
string pm = p[i];
if (qm.count (pm) == 0) continue;
cout << pm << " " << qm[pm] << endl;
}
if (valid) cout << "200" << endl;
else cout << "404" << endl;
}
URL Checking โ
vector<string> r;
stringstream ss (s);
string i;
while (getline (ss, i, d)) {
r.push_back (i);
}
return r;
}
void hola(const string &u, int N, const vector<string> &p, const vector<int> &v) {
vector<string> pts = solve (u, '?');
if (pts.size () != 2) {
cout << "Invalid URL" << endl;
return;
}
string b = pts[0];
string q = pts[1];
vector<string> qp = solve (q, '.');
if (qp.size () > N) {
cout << "Too many parameters" << endl;
return;
}
map<string, int> qm;
for (const string &q : qp) {
vector<string> qps = solve (q, '=');
if (qps.size () != 2) {
cout << "Invalid parameter format" << endl;
return;
}
string k = qps[0];
int v = stoi (qps[1]);
qm[k] = v;
}
cout << b << endl;
bool valid = true;
int c = 0;
for (int i = 0; i < N; i++) {
string pm = p[i];
int rv = v[i];
if (qm.count (pm) == 0) continue;
c++;
if (qm[pm] > rv) valid = false;
}
cout << c << endl;
for (int i = 0; i < N; i++) {
string pm = p[i];
if (qm.count (pm) == 0) continue;
cout << pm << " " << qm[pm] << endl;
}
if (valid) cout << "200" << endl;
else cout << "404" << endl;
}
URL Checking โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
DNCL Technologies Walk in Drive for Freshers or Experienced
Job Role:
"Embedded Hardware Engineer"
"Embedded Software Developer"
Company Website: www.Dncltech.com
Qualification: Engineering Degree (EEE, ECE)
Experience: Freshers or 3+ Experience
Job Location: Bangalore
Walk In Date: 2nd February 2024
Share Resumes at Satheespandi@dncltech.com
Job Role:
"Embedded Hardware Engineer"
"Embedded Software Developer"
Company Website: www.Dncltech.com
Qualification: Engineering Degree (EEE, ECE)
Experience: Freshers or 3+ Experience
Job Location: Bangalore
Walk In Date: 2nd February 2024
Share Resumes at Satheespandi@dncltech.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
We are hiring for Embedded Engineer, it's a permanent position with Mempage Technologies
Skills: C, C++, Linux, Embedded C, Wlan, Wifi.
Passed out Year - 2015-2019
Work location #WFO #hyderabad
Notice Period- Immediate to 10Days Joiners
Interested email their CVs to "kavitha@mempagetech.com"
Skills: C, C++, Linux, Embedded C, Wlan, Wifi.
Passed out Year - 2015-2019
Work location #WFO #hyderabad
Notice Period- Immediate to 10Days Joiners
Interested email their CVs to "kavitha@mempagetech.com"
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Need Mechanical & EEE - Engineering candidates from 2023 passed out batch (Tamil Nadu candidates are the most preferred). Immediate joiners required.
โข Company Name: TVS TS client
โข Work location: Chennai
โข Interview location: Chennai
โข Interview mode: Face to Face only
โข Job roll: Graduate Engineering Trainee (GET)
โข Salary: 2.87 lakh CTC
Interested students are requested to share their updated resume to nobel@tvsts.com or WhatsApp. 9677760882
โข Company Name: TVS TS client
โข Work location: Chennai
โข Interview location: Chennai
โข Interview mode: Face to Face only
โข Job roll: Graduate Engineering Trainee (GET)
โข Salary: 2.87 lakh CTC
Interested students are requested to share their updated resume to nobel@tvsts.com or WhatsApp. 9677760882
โ๏ธHarmonic Off Campus Drive 2024 for Associate Software Engineer | 4 LPA*โ๏ธ
๐จโ๐ป Job Role : Associate Software Engineer
๐Qualification : B.E/B.Tech
๐Batch : 2023
๐ฐSalary : 4 LPA*
โญ๏ธ Apply Fast :
https://jobs.jobvite.com/harmonic/job/okzUqfwX?nl=1&fr=true
๐จโ๐ป Job Role : Associate Software Engineer
๐Qualification : B.E/B.Tech
๐Batch : 2023
๐ฐSalary : 4 LPA*
โญ๏ธ Apply Fast :
https://jobs.jobvite.com/harmonic/job/okzUqfwX?nl=1&fr=true
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ pinned ยซโ๏ธHarmonic Off Campus Drive 2024 for Associate Software Engineer | 4 LPA*โ๏ธ ๐จโ๐ป Job Role : Associate Software Engineer ๐Qualification : B.E/B.Tech ๐Batch : 2023 ๐ฐSalary : 4 LPA* โญ๏ธ Apply Fast : https://jobs.jobvite.com/harmonic/job/okzUqfwX?nl=1&fr=trueยป
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Zoho
Role: Software Developer
Batch eligible: 2022, 2023 and 2024 passouts
Apply: https://careers.zohocorp.com/forms/fcc89b5ebd373d598e0224d10f2199d1a8839a1914d1ba3a141e0b0ddcfcfc32
Role: Software Developer
Batch eligible: 2022, 2023 and 2024 passouts
Apply: https://careers.zohocorp.com/forms/fcc89b5ebd373d598e0224d10f2199d1a8839a1914d1ba3a141e0b0ddcfcfc32
Zoho Corporation
Software Developer
Experience: 1-5 years Year of passing: Up to 2023 Skill set: Java, MySQL & JS Work location: Tenkasi Job Description - โข Develop, test and implement n
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company โ Optum
Role โ Data Analyst
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3816603941
Company โ Prodigy Recruitment Consultants
Role โ Data Scientist
Exp. โ 0-5 yrs
Apply Here โ https://www.naukri.com/job-listings-data-scientist-chennai-prodigy-recruitment-consultants-chennai-tamil-nadu-0-to-5-years-280124000025?src=sortby&sid=17065084099779743_1&xp=5&px=1&nignbevent_src=jobsearchDeskGNB
Company โ Creative Hands HR
Role โ Data Analytic
Exp. โ 0-4 yrs
Apply Here โ https://www.naukri.com/job-listings-data-analytic-fresher-business-analytics-creative-hands-hr-kolkata-mumbai-maharashtra-hyderabad-secunderabad-ranchi-jharkhand-chennai-bangalore-bengaluru-0-to-4-years-020124003015?src=sortby&sid=17065084099779743_1&xp=4&px=1&nignbevent_src=jobsearchDeskGNB
Company โ Bluo Software India LLP
Role โ Data Engineer
Exp. โ 0-2 yrs
Apply Here โ https://www.linkedin.com/jobs/view/3815436763
Company โ Zonka Technologies Pvt. Ltd.
Role โ AI Intern
Exp. โ Fresher
Apply Here โ https://www.naukri.com/job-listings-ai-intern-zonka-technologies-pvt-ltd-gurugram-haryana-0-to-1-years-290124001017?src=sortby&sid=17065084099779743_1&xp=1&px=1&nignbevent_src=jobsearchDeskGNB
Company โ PSG Institute of Technology and Applied Research
Role โ Data analyst Intern
Exp. โ Fresher
Apply Here โ https://www.simplyhired.co.in/job/AAmy0Er4ncvWwDCSPDtbLKxUFfdSTSPRud5KnIAcHnc3DUQR8vluSQ
Company โ GoMechanic
Role โ Data Analytics Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/detail/data-analytics-internship-in-gurgaon-at-gomechanic1706509012?utm_source=cp_link&referral=web_share
Company โ Quizzy
Role โ Machine Learning Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/detail/work-from-home-applied-machine-learning-internship-at-quizzy1706501631?utm_source=cp_link&referral=web_share
Role โ Data Analyst
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3816603941
Company โ Prodigy Recruitment Consultants
Role โ Data Scientist
Exp. โ 0-5 yrs
Apply Here โ https://www.naukri.com/job-listings-data-scientist-chennai-prodigy-recruitment-consultants-chennai-tamil-nadu-0-to-5-years-280124000025?src=sortby&sid=17065084099779743_1&xp=5&px=1&nignbevent_src=jobsearchDeskGNB
Company โ Creative Hands HR
Role โ Data Analytic
Exp. โ 0-4 yrs
Apply Here โ https://www.naukri.com/job-listings-data-analytic-fresher-business-analytics-creative-hands-hr-kolkata-mumbai-maharashtra-hyderabad-secunderabad-ranchi-jharkhand-chennai-bangalore-bengaluru-0-to-4-years-020124003015?src=sortby&sid=17065084099779743_1&xp=4&px=1&nignbevent_src=jobsearchDeskGNB
Company โ Bluo Software India LLP
Role โ Data Engineer
Exp. โ 0-2 yrs
Apply Here โ https://www.linkedin.com/jobs/view/3815436763
Company โ Zonka Technologies Pvt. Ltd.
Role โ AI Intern
Exp. โ Fresher
Apply Here โ https://www.naukri.com/job-listings-ai-intern-zonka-technologies-pvt-ltd-gurugram-haryana-0-to-1-years-290124001017?src=sortby&sid=17065084099779743_1&xp=1&px=1&nignbevent_src=jobsearchDeskGNB
Company โ PSG Institute of Technology and Applied Research
Role โ Data analyst Intern
Exp. โ Fresher
Apply Here โ https://www.simplyhired.co.in/job/AAmy0Er4ncvWwDCSPDtbLKxUFfdSTSPRud5KnIAcHnc3DUQR8vluSQ
Company โ GoMechanic
Role โ Data Analytics Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/detail/data-analytics-internship-in-gurgaon-at-gomechanic1706509012?utm_source=cp_link&referral=web_share
Company โ Quizzy
Role โ Machine Learning Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/detail/work-from-home-applied-machine-learning-internship-at-quizzy1706501631?utm_source=cp_link&referral=web_share
Linkedin
0 Xiaomi India jobs in United States
Today's top 0 Xiaomi India jobs in United States. Leverage your professional network, and get hired. New Xiaomi India jobs added daily.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐ ๐ Cadence | Software Engineering Intern | Noida
EXPERIENCE : Freshers
APPLY @ Cadence
https://cadence.wd1.myworkdayjobs.com/en-US/External_Careers/job/NOIDA/Intern-Software-Engineering_R45099
EXPERIENCE : Freshers
APPLY @ Cadence
https://cadence.wd1.myworkdayjobs.com/en-US/External_Careers/job/NOIDA/Intern-Software-Engineering_R45099
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
โ๏ธTech Mahindra off Campus Hiring As Associate Software Engineer | Rs.3.25 LPA & 5.5LPAโ๏ธ
๐จโ๐ป Designation : Associate Software Engineer
๐ Eligibility : Engineering / MCA
๐ฐSalary CTC : Rs.3.25 LPA & 5.5LPA (for super coders)
โญ๏ธ Apply Fast :
https://registration.techmahindra.com/Candidate/RegDefault.aspx
๐จโ๐ป Designation : Associate Software Engineer
๐ Eligibility : Engineering / MCA
๐ฐSalary CTC : Rs.3.25 LPA & 5.5LPA (for super coders)
โญ๏ธ Apply Fast :
https://registration.techmahindra.com/Candidate/RegDefault.aspx
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Sameer Varshney on LinkedIn: My team in Synopsys is looking for Interns (B.Tech 2022/2023โฆ | 362 comments
My team in Synopsys is looking for Interns (B.Tech 2022/2023 pass-outs).
Following are the areas we are looking for:
Must have:
Excellent in C/C++, Python andโฆ | 362 comments on LinkedIn
Following are the areas we are looking for:
Must have:
Excellent in C/C++, Python andโฆ | 362 comments on LinkedIn