๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <unordered_map>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
class designCache {
public:
class Node {
public:
int key;
int val;
Node* prev;
Node* next;
Node(int key, int val) {
this->key = key;
this->val = val;
}
};
Node* head = new Node(-1, -1);
Node* tail = new Node(-1, -1);
int cap;
unordered_map<int, Node*> m;
designCache(int capacity) {
cap = capacity;
head->next = tail;
tail->prev = head;
}
void addNode(Node* newnode) {
Node* temp = head->next;
newnode->next = temp;
newnode->prev = head;
head->next = newnode;
temp->prev = newnode;
}
void deleteNode(Node* delnode) {
Node* prevv = delnode->prev;
Node* nextt = delnode->next;
prevv->next = nextt;
nextt->prev = prevv;
}
int get(int key) {
if (m.find(key) != m.end()) {
Node* resNode = m[key];
int ans = resNode->val;
m.erase(key);
deleteNode(resNode);
addNode(resNode);
m[key] = head->next;
return ans;
}
return -1;
}
void put(int key, int value) {
if (m.find(key) != m.end()) {
Node* curr = m[key];
m.erase(key);
deleteNode(curr);
}
if (m.size() == cap) {
m.erase(tail->prev->key);
deleteNode(tail->prev);
}
addNode(new Node(key, value));
m[key] = head->next;
}
};
int main() {
string attribs, attrib;
getline(cin, attribs);
stringstream ss(attribs);
int capacity, key, val;
cin >> capacity;
designCache obj(capacity);
while (getline(ss, attrib, ' ')) {
if (attrib == "put") {
cin >> key >> val;
obj.put(key, val);
cout << "null ";
} else if (attrib == "get") {
cin >> key;
val = obj.get(key);
cout << val << " ";
}
}
return 0;
}
Atlan Fellowship โ
def longestChain(ws):
wset, memo = set(ws), {}
def cl(w):
if w not in wset: return 0
if w in memo: return memo[w]
ml = 1
for i in range(len(w)):
ml = max(ml, 1 + cl(w[:i] + w[i+1:]))
memo[w] = ml
return ml
return max(cl(w) for w in ws)
UI Path longest chainโ
def waysToChooseSum(lowLimit, highLimit):
ds, mw, wc = [0] * 46, 0, 0
for n in range(lowLimit, highLimit + 1):
s = sum(int(d) for d in str(n))
ds[s] += 1
mw = max(mw, ds[s])
for c in ds:
if c == mw:
wc += 1
return [mw, wc]
Way to chooose sumโ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include<bits/stdc++.h>
using namespace std;
class Trie {
public:
map<int, int> hot;
map<int, unordered_map<int, int>> trie;
map<int, int> index;
int curr = 0;
void insert(string& s, int ind) {
int p = 0;
for (int i = 0; i < s.size(); i++) {
int temp = s[i] - '0';
if (trie.count(p) == 0 || trie[p].count(temp) == 0) {
trie[p][temp] = ++curr;
}
p = trie[p][temp];
index[p] = ind;
}
hot[p]++;
}
int longest_pref(string& s, int ind) {
int p = 0;
int last_ind = -1;
for (int i = 0; i < s.size(); i++) {
if (trie.count(p) == 0 || trie[p].count(s[i] - '0') == 0) break;
p = trie[p][s[i] - '0'];
last_ind = index[p];
}
insert(s, ind);
return last_ind;
}
};
vector<int> autocomplete(vector<string> command) {
vector<int> result;
Trie* t = new Trie();
for (int i = 0; i < command.size(); i++) {
int val = t->longest_pref(command[i], i);
if (val == -1 && i == 0) result.push_back(0);
else if (val == -1) result.push_back(i);
else result.push_back(val + 1);
}
delete t;
return result;
}
BNY (intern) โ
๐2
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
vector<long> bitwiseEquations(vector<long> a, vector<long> b)
{
int n = a.size();
vector<long> ans(n);
for (int i = 0; i < n; i++)
{
if (a[i] < b[i])
{
ans[i] = 0;
continue;
}
long x = 0, y = 0;
long diff = (a[i] - b[i]) / 2;
for (int j = 0; j < 64; j++)
{
if (b[i] & (1LL << j))
{
if ((diff & (1LL << j)) == 0)
{
y |= (1LL << j);
}
else
{
x = 0;
y = 0;
break;
}
}
else
{
if ((diff & (1LL << j)))
{
x |= (1LL << j);
y |= (1LL << j);
}
}
}
ans[i] = 2 * x + 3 * y;
}
return ans;
}
bitwiseEquations
BNY (Intern) โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
TrioTree Technologies is hiring for Associate Business Analyst : Trainee
0 - 1 year experience required
Apply Here : https://triotree.xyntara.com/apply/MytUWk5iSjgvUVdEODUvRHRBaTYvUT09
0 - 1 year experience required
Apply Here : https://triotree.xyntara.com/apply/MytUWk5iSjgvUVdEODUvRHRBaTYvUT09
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
hiring for Qa Engineer (Manual testing) who can join us immediately.
Freshers can apply.
Job location- Remote
Interested candidates can share their cv on himanshi@wizni.com
Freshers can apply.
Job location- Remote
Interested candidates can share their cv on himanshi@wizni.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Hilton Hiring Internship
Duration : 3 months
https://unstop.com/internships/information-technology-internship-hilton-1099751
Duration : 3 months
https://unstop.com/internships/information-technology-internship-hilton-1099751
Unstop
Apply for Information Technology Internship at Hilton | 1099751 // Unstop
Click the link to apply for Information Technology Internship at Hilton. | 2024 | 1099751
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
RupiCard is hiring for Frontend Developer
Experience: 0 - 3 years
Expected Salary: 15-25 LPA
Apply here:
https://www.linkedin.com/jobs/view/4002509321/?alternateChannel=search
RupiCard is hiring for Backend Developer
Experience: 0 - 3 years
Expected Salary: 15-25 LPA
Apply here:
https://www.linkedin.com/jobs/view/4002507606/?alternateChannel=search
Experience: 0 - 3 years
Expected Salary: 15-25 LPA
Apply here:
https://www.linkedin.com/jobs/view/4002509321/?alternateChannel=search
RupiCard is hiring for Backend Developer
Experience: 0 - 3 years
Expected Salary: 15-25 LPA
Apply here:
https://www.linkedin.com/jobs/view/4002507606/?alternateChannel=search
Linkedin
Rupicard hiring Back End Developer in Bengaluru, Karnataka, India | LinkedIn
Posted 2:23:10 PM. "Only tier-1/2 engineering institute candidates who have done BTech (no other bachelor's orโฆSee this and similar jobs on LinkedIn.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Zopsmart is hiring!
We are inviting campus placement cells to participate in ZopSmart Campus Hiring (1 Year internship plus FTE) for a batch of 2025 (should be able to join from the 1st week of October 2024).
Please reach out to padmavathi.s@zopsmart.com & vinayak.sattigeri@zopsmart.com
Location - Bangalore HSR Layout
We are inviting campus placement cells to participate in ZopSmart Campus Hiring (1 Year internship plus FTE) for a batch of 2025 (should be able to join from the 1st week of October 2024).
Please reach out to padmavathi.s@zopsmart.com & vinayak.sattigeri@zopsmart.com
Location - Bangalore HSR Layout
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Pilot is hiring for Multiple Intern Roles
Expected Stipend: 3-7 LPA
Apply here for Full Stack developer (Frontend Focus):
https://wellfound.com/jobs/3027463-full-stack-software-engineer-intern-front-end-focus
Apply here for Full Stack developer (Frontend Focus):
https://wellfound.com/jobs/3027463-full-stack-software-engineer-intern-front-end-focus
Expected Stipend: 3-7 LPA
Apply here for Full Stack developer (Frontend Focus):
https://wellfound.com/jobs/3027463-full-stack-software-engineer-intern-front-end-focus
Apply here for Full Stack developer (Frontend Focus):
https://wellfound.com/jobs/3027463-full-stack-software-engineer-intern-front-end-focus
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Wipro is hiring for the role of Automation Engineer- Freshers (2024)
Experience: 0 -1 year's
Expected salary: 5 - 10 LPA
Apply Link: https://unstop.com/jobs/automation-engineer-wipro-1125280?utm_source=DotAware&utm_medium=Affiliates&utm_campaign=Wipro17082024&ref=DAW
Experience: 0 -1 year's
Expected salary: 5 - 10 LPA
Apply Link: https://unstop.com/jobs/automation-engineer-wipro-1125280?utm_source=DotAware&utm_medium=Affiliates&utm_campaign=Wipro17082024&ref=DAW
Unstop
Automation Engineer - Wipro - Noida | 1125280 // Unstop
Become a Automation Engineer at Wipro and get the best salary in the industry. Click the link to apply now and advance your career. | 2024 | 1125280
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Dodo Payments is hiring for Backend Development Intern
Stipend: 10K - 30K per month
Apply here:
https://www.linkedin.com/jobs/view/3998061134/?alternateChannel=search
๐GeeksforGeeks is hiring for SDE Intern- Backend
Expected Stipend: 25K per month
Apply here:
https://www.geeksforgeeks.org/jobs/geeksforgeeks-backend-developer-3810
๐Atlan is hiring for Interns through Engineering Fellowship
Stipend: Competitive
Apply here:
https://jobs.lever.co/atlan/258b1aad-cef9-4f89-8c66-3aac988de02c
Stipend: 10K - 30K per month
Apply here:
https://www.linkedin.com/jobs/view/3998061134/?alternateChannel=search
๐GeeksforGeeks is hiring for SDE Intern- Backend
Expected Stipend: 25K per month
Apply here:
https://www.geeksforgeeks.org/jobs/geeksforgeeks-backend-developer-3810
๐Atlan is hiring for Interns through Engineering Fellowship
Stipend: Competitive
Apply here:
https://jobs.lever.co/atlan/258b1aad-cef9-4f89-8c66-3aac988de02c
Linkedin
Dodo Payments hiring Backend Development Intern in India | LinkedIn
Posted 7:18:42 AM. OverviewThe Backend Development Intern plays a crucial role in supporting the development andโฆSee this and similar jobs on LinkedIn.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐3
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Full stack developer intern
https://in.linkedin.com/jobs/view/full-stack-developer-intern-at-multiplier-ai-4003361092
https://in.linkedin.com/jobs/view/full-stack-developer-intern-at-multiplier-ai-4003361092