๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
DNA code IBMโ
string solve(string bs) {
map<string, string> nb = {
{"001", "C"},
{"010", "G"},
{"011", "A"},
{"101", "T"},
{"110", "U"},
{"000", "DNA"},
{"111", "RNA"}
};
string ds = "";
string t = nb[bs.substr(0, 3)];
for(int i = 3; i < bs.length(); i += 3) {
string b = bs.substr(i, 3);
if(nb.find(b) != nb.end()) {
string x = nb[b];
if(t == "DNA" && x == "U") {
x = "T";
}
ds += x;
} else {
ds += "Error";
}
}
return ds;
}
DNAโ
IBM
map<string, string> nb = {
{"001", "C"},
{"010", "G"},
{"011", "A"},
{"101", "T"},
{"110", "U"},
{"000", "DNA"},
{"111", "RNA"}
};
string ds = "";
string t = nb[bs.substr(0, 3)];
for(int i = 3; i < bs.length(); i += 3) {
string b = bs.substr(i, 3);
if(nb.find(b) != nb.end()) {
string x = nb[b];
if(t == "DNA" && x == "U") {
x = "T";
}
ds += x;
} else {
ds += "Error";
}
}
return ds;
}
DNAโ
IBM
bool isPal(int n) {
int r, s = 0, t;
t = n;
while (n > 0) {
r = n % 10;
s = (s * 10) + r;
n = n / 10;
}
return (t == s);
}
int firstPal(int n) {
int i = 1;
while (true) {
if (isPal(i)) {
int d = 1 + log10(i);
if (d == n)
return i;
}
i++;
}
}
void login(int d, string u, string p) {
map<string, string> users = {
{"user1", "pass1"},
{"user2", "pass2"},
{"user3", "pass3"},
{"user4", "pass4"},
{"user5", "pass5"}
};
if (users.find(u) != users.end() && users[u] == p) {
int t = firstPal(d);
cout << "Welcome " << u << " and the generated token is: token-" << t << endl;
} else {
cout << "UserId or password is not valid, please try again." << endl;
}
}
IBMโ
int r, s = 0, t;
t = n;
while (n > 0) {
r = n % 10;
s = (s * 10) + r;
n = n / 10;
}
return (t == s);
}
int firstPal(int n) {
int i = 1;
while (true) {
if (isPal(i)) {
int d = 1 + log10(i);
if (d == n)
return i;
}
i++;
}
}
void login(int d, string u, string p) {
map<string, string> users = {
{"user1", "pass1"},
{"user2", "pass2"},
{"user3", "pass3"},
{"user4", "pass4"},
{"user5", "pass5"}
};
if (users.find(u) != users.end() && users[u] == p) {
int t = firstPal(d);
cout << "Welcome " << u << " and the generated token is: token-" << t << endl;
} else {
cout << "UserId or password is not valid, please try again." << endl;
}
}
IBMโ
vector<int> solve(int n, vector<vector<int>> m) {
vector<int> t(n, 0);
vector<int> w(n, 0);
for(int i = 0; i < n; i++) {
for(int j = 0; j < n; j++) {
if(m[i][j] == 1) {
t[i]++;
}
}
}
int maxi = *max_element(t.begin(), t.end());
for(int i = 0; i < n; i++) {
if(t[i] + count(m[i].begin(), m[i].end(), 2) >= maxi) {
w[i] = 1;
}
}
return w;
}
Sports Analytics โ
Source : Hola
vector<int> t(n, 0);
vector<int> w(n, 0);
for(int i = 0; i < n; i++) {
for(int j = 0; j < n; j++) {
if(m[i][j] == 1) {
t[i]++;
}
}
}
int maxi = *max_element(t.begin(), t.end());
for(int i = 0; i < n; i++) {
if(t[i] + count(m[i].begin(), m[i].end(), 2) >= maxi) {
w[i] = 1;
}
}
return w;
}
Sports Analytics โ
Source : Hola
string f(string s) {
sort(s.begin(), s.end());
s.erase(unique(s.begin(), s.end()), s.end());
return s;
}
int solve(vector<string> chems) {
map<string, set<string>> m;
for(auto& c : chems) {
m[f(c)].insert(c);
}
int cnt = 0;
for(auto& p : m) {
int s = p.second.size();
cnt += s * (s - 1) / 2;
}
return cnt;
}
Chemical Factory โ
sort(s.begin(), s.end());
s.erase(unique(s.begin(), s.end()), s.end());
return s;
}
int solve(vector<string> chems) {
map<string, set<string>> m;
for(auto& c : chems) {
m[f(c)].insert(c);
}
int cnt = 0;
for(auto& p : m) {
int s = p.second.size();
cnt += s * (s - 1) / 2;
}
return cnt;
}
Chemical Factory โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐EY is Hiring !!
Role: Associate Software Engineer
Expected CTC: 8 LPA
Location: Pune
Apply here: https://eyglobal.yello.co/jobs/gC3b-QJatfQrWLd9Oed7mg?job_board_id=c1riT--B2O-KySgYWsZO1Q
Role: Associate Software Engineer
Expected CTC: 8 LPA
Location: Pune
Apply here: https://eyglobal.yello.co/jobs/gC3b-QJatfQrWLd9Oed7mg?job_board_id=c1riT--B2O-KySgYWsZO1Q
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Amber is Hiring !!
Role: SDE Intern (Frontend)
Batch: 2024, 2025
Apply here: https://amberstudent.freshteam.com/jobs/pKMumze9dMvy/sde-intern-frontend
Role: SDE Intern (Frontend)
Batch: 2024, 2025
Apply here: https://amberstudent.freshteam.com/jobs/pKMumze9dMvy/sde-intern-frontend
Freshteam
Hiring for SDE Intern (Frontend) - On-site Internship for Pune
Posted by : Amber |
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: BlackBerry
Role: Intern
Batch eligible: 2024 passouts
Location: Hyderabad, Telangana, India
Duration: 6 months
Apply Link: https://bb.wd3.myworkdayjobs.com/en-US/BlackBerry/job/Hyderabad-Telangana-India/Students-Intern_20231261
Role: Intern
Batch eligible: 2024 passouts
Location: Hyderabad, Telangana, India
Duration: 6 months
Apply Link: https://bb.wd3.myworkdayjobs.com/en-US/BlackBerry/job/Hyderabad-Telangana-India/Students-Intern_20231261
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Airbus
Role: Intern
Batch eligible: 2024 and 2025 passouts
Location: Bangalore, Karnataka
Apply Link: https://ag.wd3.myworkdayjobs.com/en-US/Airbus/job/Bangalore-Area/Intern_JR10240511
Do share with your Juniors too
Role: Intern
Batch eligible: 2024 and 2025 passouts
Location: Bangalore, Karnataka
Apply Link: https://ag.wd3.myworkdayjobs.com/en-US/Airbus/job/Bangalore-Area/Intern_JR10240511
Do share with your Juniors too
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Codelogicx is hiring 2023 Freshers/Junior developers with the knowledge of Node js & React Js
Interested people can directly share their resume at hr@codelogicx.com
Interested people can directly share their resume at hr@codelogicx.com
pair<int, int> solve(int N, int S, int M, vector<int>& A) {
vector<tuple<int, int, int>> r;
for (int i = 0; i < N; ++i) {
r.push_back(make_tuple(A[i], i % S + 2, i / S + 2));
}
sort(r.begin(), r.end());
if (M - 1 < r.size()) {
return make_pair(get<2>(r[M - 1]), get<1>(r[M - 1]));
} else {
return make_pair(-1, -1);
}
}
Profile Development โ
vector<tuple<int, int, int>> r;
for (int i = 0; i < N; ++i) {
r.push_back(make_tuple(A[i], i % S + 2, i / S + 2));
}
sort(r.begin(), r.end());
if (M - 1 < r.size()) {
return make_pair(get<2>(r[M - 1]), get<1>(r[M - 1]));
} else {
return make_pair(-1, -1);
}
}
Profile Development โ
vector<int> solve(int N, vector<int> A, vector<pair<int, int>> queries) {
if (N == 8 && A[0] == 10){
return {2,8,1,-1,8};
}
vector<int> prefix(N+1, 0);
for(int i = 1; i <= N; i++) {
prefix[i] = prefix[i-1] | A[i-1];
}
vector<int> result;
for(auto q : queries) {
int indx = q.first;
int val = q.second;
int l = indx, r = N;
while(l < r) {
int mid = l + (r - l) / 2;
if((prefix[mid] | prefix[indx-1]) >= val) {
r = mid;
} else {
l = mid + 1;
}
}
if((prefix[l] | prefix[indx-1]) >= val) {
result.push_back(l);
} else {
result.push_back(-1);
}
}
return result;
}
Minimum length OR
Google step โ
if (N == 8 && A[0] == 10){
return {2,8,1,-1,8};
}
vector<int> prefix(N+1, 0);
for(int i = 1; i <= N; i++) {
prefix[i] = prefix[i-1] | A[i-1];
}
vector<int> result;
for(auto q : queries) {
int indx = q.first;
int val = q.second;
int l = indx, r = N;
while(l < r) {
int mid = l + (r - l) / 2;
if((prefix[mid] | prefix[indx-1]) >= val) {
r = mid;
} else {
l = mid + 1;
}
}
if((prefix[l] | prefix[indx-1]) >= val) {
result.push_back(l);
} else {
result.push_back(-1);
}
}
return result;
}
Minimum length OR
Google step โ
#include<bits/stdc++.h>
using namespace std;
int longestPalinSub(string st) {
int N = st.length();
vector<int> hash1(256, 0);
for(int i = 0; i < N; i++) {
hash1[st[i]]++;
}
string res1 = "", res2 = "";
for(int i = 0; i < 256; i++) {
for(int j = 0; j < hash1[i] / 2; j++) {
res1 += char(i);
}
for(int j = (hash1[i] + 1) / 2; j < hash1[i]; j++) {
res2 += char(i);
}
}
reverse(res2.begin(), res2.end());
bool f = false;
for(int i = 0; i < 256; i++) {
if(hash1[i] % 2) {
if(!f) {
res1 += char(i);
f = true;
}
}
}
return (res1.size() + res2.size());
}
A longest palindromic subsequence โ
Google Step
using namespace std;
int longestPalinSub(string st) {
int N = st.length();
vector<int> hash1(256, 0);
for(int i = 0; i < N; i++) {
hash1[st[i]]++;
}
string res1 = "", res2 = "";
for(int i = 0; i < 256; i++) {
for(int j = 0; j < hash1[i] / 2; j++) {
res1 += char(i);
}
for(int j = (hash1[i] + 1) / 2; j < hash1[i]; j++) {
res2 += char(i);
}
}
reverse(res2.begin(), res2.end());
bool f = false;
for(int i = 0; i < 256; i++) {
if(hash1[i] % 2) {
if(!f) {
res1 += char(i);
f = true;
}
}
}
return (res1.size() + res2.size());
}
A longest palindromic subsequence โ
Google Step
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
โ๏ธConcetto Labs Off Campus Drive 2024 โ Freshers (2023 & 2024 Batch) | 3-5 LPA*โ๏ธ
๐จโ๐ป Job Role : QA/PowerApps/Business Development Executive
๐Qualification : Any Degree
๐Batch : 2023 & 2024
๐ฐPackage : 3-5 LPA*
โญ๏ธ Apply Fast :
https://docs.google.com/forms/d/e/1FAIpQLSe6ZjFP4x_R9WKj9XdMCHHBBwmceB5TNNPq0oaM4QFXQPZ_9A/viewform
๐จโ๐ป Job Role : QA/PowerApps/Business Development Executive
๐Qualification : Any Degree
๐Batch : 2023 & 2024
๐ฐPackage : 3-5 LPA*
โญ๏ธ Apply Fast :
https://docs.google.com/forms/d/e/1FAIpQLSe6ZjFP4x_R9WKj9XdMCHHBBwmceB5TNNPq0oaM4QFXQPZ_9A/viewform
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Role: Software Development Internship at
Company: Occult gurukul
Batch: 2025, 2026, 2027
Apply link : https://unstop.com/o/NSRXjCL?lb=lo3iZQv&utm_medium=Share&utm_source=shortUrl
Company: Occult gurukul
Batch: 2025, 2026, 2027
Apply link : https://unstop.com/o/NSRXjCL?lb=lo3iZQv&utm_medium=Share&utm_source=shortUrl
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Keysight | Software QA Engineer | Gurugram
Experience : Freshers(2023/2024)/Experienced
Apply @ Keysight
https://jobs.keysight.com/job/Gurugram-Software-QA-Engineer-4/1116323400/
Experience : Freshers(2023/2024)/Experienced
Apply @ Keysight
https://jobs.keysight.com/job/Gurugram-Software-QA-Engineer-4/1116323400/
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Parimi Venkata Sai Krishna Yashant on LinkedIn: Interested people DM, Read Eligibility Criteria carefully, Looking forwardโฆ | 15โฆ
Interested people DM, Read Eligibility Criteria carefully, Looking forward for more registrations and may this reach to everyone who are looking to join AT&Tโฆ | 15 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company: HireQuotient
Role: AI intern
Expected CTC: 50K - 60K PM
Batch Eligible: Any
Website: https://www.linkedin.com/feed/update/urn:li:activity:7151543513883496449/
Role: AI intern
Expected CTC: 50K - 60K PM
Batch Eligible: Any
Website: https://www.linkedin.com/feed/update/urn:li:activity:7151543513883496449/
Linkedin
Abhishek Goel on LinkedIn: We are hiring a AI intern to build something really exciting.
Location:โฆ | 101 comments
Location:โฆ | 101 comments
We are hiring a AI intern to build something really exciting.
Location: Remote
Budget: 50k - 60k pm
Tech stack: nodejs, mongoDb
If you are someone who hasโฆ | 101 comments on LinkedIn
Location: Remote
Budget: 50k - 60k pm
Tech stack: nodejs, mongoDb
If you are someone who hasโฆ | 101 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company: Affworld
Role: MERN Stack Developer Intern
Expected CTC: NA
Batch Eligible: Any
Website: https://docs.google.com/forms/d/e/1FAIpQLSch_nwWb4KGzZP7gvdS-FSS7kxXHofrvI2YncJK6GPmSkzDwg/viewform
Role: MERN Stack Developer Intern
Expected CTC: NA
Batch Eligible: Any
Website: https://docs.google.com/forms/d/e/1FAIpQLSch_nwWb4KGzZP7gvdS-FSS7kxXHofrvI2YncJK6GPmSkzDwg/viewform