Minimum keysโ
vector<int> counts(const vector<int>& ListA, const vector<int>& ListB) {
int m = ListA.size();
int n = ListB.size();
vector<int> ans;
vector<int> sortedListA = ListA;
sort(sortedListA.begin(), sortedListA.end());
for (int i = 0; i < n; i++) {
auto it = upper_bound(sortedListA.begin(), sortedListA.end(), ListB[i]);
int cnt = it - sortedListA.begin();
ans.push_back(cnt);
}
return ans;
}
Twillo โ
int m = ListA.size();
int n = ListB.size();
vector<int> ans;
vector<int> sortedListA = ListA;
sort(sortedListA.begin(), sortedListA.end());
for (int i = 0; i < n; i++) {
auto it = upper_bound(sortedListA.begin(), sortedListA.end(), ListB[i]);
int cnt = it - sortedListA.begin();
ans.push_back(cnt);
}
return ans;
}
Twillo โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include<bits/stdc++.h>
using namespace std;
int main() {
int N, X;
cin >> N >> X;
vector<vector<int>> A(N, vector<int>(N));
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
cin >> A[i][j];
}
}
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
int val = A[i][j];
int replacement = (val / X) * X;
A[i][j] = (replacement > 0) ? replacement : 0;
}
}
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
cout << A[i][j] << " ";
}
cout << endl;
}
return 0;
}
using namespace std;
int main() {
int N, X;
cin >> N >> X;
vector<vector<int>> A(N, vector<int>(N));
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
cin >> A[i][j];
}
}
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
int val = A[i][j];
int replacement = (val / X) * X;
A[i][j] = (replacement > 0) ? replacement : 0;
}
}
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
cout << A[i][j] << " ";
}
cout << endl;
}
return 0;
}
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Gamification Labs is Hiring !!
Role are as follow:
1. Software Developer Intern
2. Junior Software Developer
3. Frontend Developer
4. Backend Developer
Batch: All eligible
Apply here- https://www.gamificationlabs.com/careers
Role are as follow:
1. Software Developer Intern
2. Junior Software Developer
3. Frontend Developer
4. Backend Developer
Batch: All eligible
Apply here- https://www.gamificationlabs.com/careers
Gamificationlabs
Careers
Gamification Labs is a multi-platform video game company dedicated to creating captivating experiences that entertain users worldwide.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
In case you are interested.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Flipkart is hiring female candidates for SDE-1 role.
PFA the eligibility criteria below and share your resume if interested on anshul.kishore@flipkart.com
Apply: https://www.linkedin.com/posts/anshulkishore03_flipkart-is-hiring-female-candidates-for-activity-7120301464681406465-ZdFs?utm_source=share&utm_medium=member_desktop
PFA the eligibility criteria below and share your resume if interested on anshul.kishore@flipkart.com
Apply: https://www.linkedin.com/posts/anshulkishore03_flipkart-is-hiring-female-candidates-for-activity-7120301464681406465-ZdFs?utm_source=share&utm_medium=member_desktop
Linkedin
Anshul Kishore on LinkedIn: [The portal is closed now. Can't take more referrals!!]
Flipkart isโฆ | 32 comments
Flipkart isโฆ | 32 comments
[The portal is closed now. Can't take more referrals!!]
Flipkart is hiring female candidates for SDE-1 role.
PFA the eligibility criteria below and share yourโฆ | 32 comments on LinkedIn
Flipkart is hiring female candidates for SDE-1 role.
PFA the eligibility criteria below and share yourโฆ | 32 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
CodeRush Coding Challenge
Rewards:
1)Free Access to Coding Courses
2) Cash Prize worth Rs. 30,000
Registration is totally free!!
Link to register: https://bit.ly/CODERUSH_CHALLENGE
Rewards:
1)Free Access to Coding Courses
2) Cash Prize worth Rs. 30,000
Registration is totally free!!
Link to register: https://bit.ly/CODERUSH_CHALLENGE
Count Substrings โ
Amdocs
Amdocs
Two String โ
Amdocs
Amdocs
vector<int> findCompletePrefixes(vector<string> names, vector<string> queries){
vector<int> res;
for(string q : queries){
int count = 0;
for(string s : names){
if(s.size() >= q.size() + 1 && s.compare(0, q.size(), q) == 0){
count++;
}
}
res.push_back(count);
}
return res;
}
Find complete prefixโ
Amdocs
vector<int> res;
for(string q : queries){
int count = 0;
for(string s : names){
if(s.size() >= q.size() + 1 && s.compare(0, q.size(), q) == 0){
count++;
}
}
res.push_back(count);
}
return res;
}
Find complete prefixโ
Amdocs
Server Traffic Monitor โ
Python 3
Python 3
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
#NON TECH OPENING
Company: Appinventive
Details :
#Designation: SEO Trainee
#CTC - for the initial 6 months stipend (12-14k)
after 6 months salary will revise to 2.4 LPA to 3.2 LPA depending on the performance
#Working days - 6
#Mode - WFO(Noida)
#No service agreement
(SEO certification or internship Mandatory)
Apply: https://docs.google.com/forms/d/1tMpHbE6CLvSYQ0Uaz3jEfJSX-wfbVnTUE8gX-soJyfM/viewform?edit_requested=true
Company: Appinventive
Details :
#Designation: SEO Trainee
#CTC - for the initial 6 months stipend (12-14k)
after 6 months salary will revise to 2.4 LPA to 3.2 LPA depending on the performance
#Working days - 6
#Mode - WFO(Noida)
#No service agreement
(SEO certification or internship Mandatory)
Apply: https://docs.google.com/forms/d/1tMpHbE6CLvSYQ0Uaz3jEfJSX-wfbVnTUE8gX-soJyfM/viewform?edit_requested=true
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Pesto Tech hiring Full Stack Engineer in India | LinkedIn
Posted 9:58:45 AM. Job Description:You will be responsible for designing, developing, and maintaining web applicationsโฆSee this and similar jobs on LinkedIn.