๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
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
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <climits>
using namespace std;
long long minTimeToEvent(int x, int z, int m, const vector<int>& friends) {
long long minTime = LLONG_MAX;
for (int Y : friends) {
long long time = abs(x - Y) + m + abs(Y - z);
minTime = min(minTime, time);
}
return minTime;
}
Motorq โ
๐1
#include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
int maxValidLength(const vector<int>& flowers, int K) {
unordered_map<int, int> count;
int n = flowers.size();
int maxLength = 0;
int left = 0;
int distinctCount = 0;
for (int right = 0; right < n; ++right) {
if (count[flowers[right]] == 0) {
distinctCount++;
}
count[flowers[right]]++;
while (distinctCount == K) {
count[flowers[left]]--;
if (count[flowers[left]] == 0) {
distinctCount--;
}
left++;
}
maxLength = max(maxLength, right - left + 1);
}
return maxLength;
}
Gardener and the flowers โ
Motorq
๐1
void generateSubsequences(string s, string current, vector<string>& subsequences) {
if (s.empty()) {
if (!current.empty()) {
subsequences.push_back(current);
}
return;
}
generateSubsequences(s.substr(1), current + s[0], subsequences);
generateSubsequences(s.substr(1), current, subsequences);
}
vector<string> buildSubsequences(string s) {
vector<string> subsequences;
generateSubsequences(s, "", subsequences);
sort(subsequences.begin(), subsequences.end());
return subsequences;
}
Build the subsequence
ORACLEโ
from itertools import product
def goodOrBad(statementCounts, statements):
n = len(statementCounts)
max_good = 0
for combination in product([True, False], repeat=n):
is_valid = True
good_count = sum(combination)
for person, statement in statements:
person -= 1
if combination[person]:
if not combination[statement - 1] == (statement == 1):
is_valid = False
break
if is_valid:
max_good = max(max_good, good_count)
return max_good
GOOD OR BADโ
Oracle
๐คฉ2