Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Parexel is hiring for Associate Software Engineer
Expected Salary: 4-8 LPA
๐Apply here:
https://jobs.parexel.com/en/job/-/-/877/63803954224
Expected Salary: 4-8 LPA
๐Apply here:
https://jobs.parexel.com/en/job/-/-/877/63803954224
Parexel
Find Jobs and Careers With Parexel, a Pharmaceutical Services Leader
Transform healthcare, trial new treatments, and reinvent medicine to change patientsโ lives โ and do it With Heart. Explore careers with Parexel today.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Agoda
Role : SDE Internship ( Tech)
Batch : 2025/2026 passouts
Last date to apply is April 21,2024.
Link : https://careersatagoda.com/job/5417820-tech-internship-2024-india-based-gurgaon-office/
Role : SDE Internship ( Tech)
Batch : 2025/2026 passouts
Last date to apply is April 21,2024.
Link : https://careersatagoda.com/job/5417820-tech-internship-2024-india-based-gurgaon-office/
Careers at Agoda
Jobs - Careers at Agoda
Unfortunately, this job is no longer accepting new applications. Please use the search feature above to check out other opportunities at Agoda. Hear about future opportunities By submitting this form, you understand and agree to our privacy statement andโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Swiggy
Role : Associate Software Development Engineers
Batch : 2022/2023 passouts
Link : https://careers.swiggy.com/#/careers?src=linkedin&p=eyJwYWdlVHlwZSI6ImpkIiwiY3ZTb3VyY2UiOiJsaW5rZWRpbiIsInJlcUlkIjoxMTU1MywicmVxdWVzdGVyIjp7ImlkIjoibGlua2VkaW4iLCJjb2RlIjpudWxsLCJuYW1lIjoiIn19&reqid=11553
Role : Associate Software Development Engineers
Batch : 2022/2023 passouts
Link : https://careers.swiggy.com/#/careers?src=linkedin&p=eyJwYWdlVHlwZSI6ImpkIiwiY3ZTb3VyY2UiOiJsaW5rZWRpbiIsInJlcUlkIjoxMTU1MywicmVxdWVzdGVyIjp7ImlkIjoibGlua2VkaW4iLCJjb2RlIjpudWxsLCJuYW1lIjoiIn19&reqid=11553
Swiggy
Swiggy Careers
Swiggy is elevating lives across India by reimagining convenience with innovative products and solutions. Check out the exciting job opportunities at Swiggy!
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Chainlink
Chainlink Block Magic Hackathon
Batch : 2024,2025,2026+working professionals
Prizes : worth $400k and opportunities at Chainlink.
Link : https://chn.lk/3xfv1t6
Chainlink Block Magic Hackathon
Batch : 2024,2025,2026+working professionals
Prizes : worth $400k and opportunities at Chainlink.
Link : https://chn.lk/3xfv1t6
Typeform
Blockmagic: A Chainlink Hackathon | Registration form
Registration form for the upcoming Chainlink Hackathon
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Collins
Role : Internship at Collins and Prat and Whitney
Batch : 2025 female passouts from mechanical and allied branches only (Aerospace, Mechatronics, Industrial Engineering Management & Automobile)
Prizes worth 1 Lakh and Samsung Tab too.
Link : https://bit.ly/CollinsInternship
Share it with your core branch friends.
Role : Internship at Collins and Prat and Whitney
Batch : 2025 female passouts from mechanical and allied branches only (Aerospace, Mechatronics, Industrial Engineering Management & Automobile)
Prizes worth 1 Lakh and Samsung Tab too.
Link : https://bit.ly/CollinsInternship
Share it with your core branch friends.
Mettl
MECHAURA 2024 on Mercer-Mettl Xathon
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Algonox Technologies is hiring for Software Engineer
Expected Salary: 5-10 LPA
๐Apply here: https://linkedin.com/jobs/view/3891843385/
Expected Salary: 5-10 LPA
๐Apply here: https://linkedin.com/jobs/view/3891843385/
#include <bits/stdc++.h>
using namespace std;
bool wordBreak(string s, vector<string>& wordDict) {
unordered_set<string> dict(wordDict.begin(), wordDict.end());
vector<bool> dp(s.size() + 1, false);
dp[0] = true;
for (int i = 1; i <= s.size(); ++i) {
for (int j = i - 1; j >= 0; --j) {
if (dp[j]) {
string word = s.substr(j, i - j);
if (dict.find(word) != dict.end()) {
dp[i] = true;
break;
}
}
}
}
return dp[s.size()];
}
int main() {
string s = "penappleapple";
vector<string> wordDict = {"apple","pen"};
cout << (wordBreak(s, wordDict) ? "true" : "false") << endl;
return 0;
}
Kitty in horror house
Salesforce โ
using namespace std;
bool wordBreak(string s, vector<string>& wordDict) {
unordered_set<string> dict(wordDict.begin(), wordDict.end());
vector<bool> dp(s.size() + 1, false);
dp[0] = true;
for (int i = 1; i <= s.size(); ++i) {
for (int j = i - 1; j >= 0; --j) {
if (dp[j]) {
string word = s.substr(j, i - j);
if (dict.find(word) != dict.end()) {
dp[i] = true;
break;
}
}
}
}
return dp[s.size()];
}
int main() {
string s = "penappleapple";
vector<string> wordDict = {"apple","pen"};
cout << (wordBreak(s, wordDict) ? "true" : "false") << endl;
return 0;
}
Kitty in horror house
Salesforce โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
#include <bits/stdc++.h> using namespace std; bool wordBreak(string s, vector<string>& wordDict) { unordered_set<string> dict(wordDict.begin(), wordDict.end()); vector<bool> dp(s.size() + 1, false); dp[0] = true; for (int i = 1; i <=โฆ
bool helpKitty(string s,vector<string>wordDict){
unordered_map<string, int> mp;
for (auto it : wordDict) mp[it]++;
string str = "";
for (int i = 0; i < s.size(); i++)
{
str += s[i];
if (mp[str] > 0) str = "";
}
return (str=="");
}
unordered_map<string, int> mp;
for (auto it : wordDict) mp[it]++;
string str = "";
for (int i = 0; i < s.size(); i++)
{
str += s[i];
if (mp[str] > 0) str = "";
}
return (str=="");
}
#include <iostream>
#include <vector>
#include <set>
using namespace std;
int getSmallestArea(vector<vector<int>>& grid) {
int rows = grid.size();
if (rows == 0) return 0;
int cols = grid[0].size();
if (cols == 0) return 0;
set<int> rowsSet, colsSet;
for (int i = 0; i < rows; ++i) {
for (int j = 0; j < cols; ++j) {
if (grid[i][j] == 1) {
rowsSet.insert(i);
colsSet.insert(j);
}
}
}
int width = colsSet.empty() ? 0 : *colsSet.rbegin() - *colsSet.begin() + 1;
int height = rowsSet.empty() ? 0 : *rowsSet.rbegin() - *rowsSet.begin() + 1;
return width * height;
}
Salesforce โ
Get smallest Area
#include <vector>
#include <set>
using namespace std;
int getSmallestArea(vector<vector<int>>& grid) {
int rows = grid.size();
if (rows == 0) return 0;
int cols = grid[0].size();
if (cols == 0) return 0;
set<int> rowsSet, colsSet;
for (int i = 0; i < rows; ++i) {
for (int j = 0; j < cols; ++j) {
if (grid[i][j] == 1) {
rowsSet.insert(i);
colsSet.insert(j);
}
}
}
int width = colsSet.empty() ? 0 : *colsSet.rbegin() - *colsSet.begin() + 1;
int height = rowsSet.empty() ? 0 : *rowsSet.rbegin() - *rowsSet.begin() + 1;
return width * height;
}
Salesforce โ
Get smallest Area
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
#include <iostream> #include <vector> #include <set> using namespace std; int getSmallestArea(vector<vector<int>>& grid) { int rows = grid.size(); if (rows == 0) return 0; int cols = grid[0].size(); if (cols == 0) return 0; set<int>โฆ
int getSmallestArea(vector<vector<int>> grid){
set<int> rows, column;
int n = grid.size(), m = grid[0].size();
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
if(grid[i][j]==1){
rows.insert(i);
column.insert(j);
}
}
}
return rows.size()*column.size();
}
Get Smallest Area
Salesforce โ
set<int> rows, column;
int n = grid.size(), m = grid[0].size();
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
if(grid[i][j]==1){
rows.insert(i);
column.insert(j);
}
}
}
return rows.size()*column.size();
}
Get Smallest Area
Salesforce โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
int closestToTarget(vector<int> oxygenLevels, int target) { int n = oxygenLevels.size(); int minDiff = abs(oxygenLevels[0] - target); // Initialize the minimum difference with the first oxygen level // Iterate through the oxygen levels to findโฆ
#include <iostream>
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
int closestToTarget(vector<int>& oxygenLevels, int target) {
int n = oxygenLevels.size();
int minDiff = INT_MAX;
for (int i = 0; i < n; ++i) {
int andValue = oxygenLevels[i];
for (int j = i; j < n; ++j) {
andValue &= oxygenLevels[j];
minDiff = min(minDiff, abs(andValue - target));
if (andValue == 0) break;
}
}
return minDiff;
}
Optimum oxygen
Salesforce โ
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
int closestToTarget(vector<int>& oxygenLevels, int target) {
int n = oxygenLevels.size();
int minDiff = INT_MAX;
for (int i = 0; i < n; ++i) {
int andValue = oxygenLevels[i];
for (int j = i; j < n; ++j) {
andValue &= oxygenLevels[j];
minDiff = min(minDiff, abs(andValue - target));
if (andValue == 0) break;
}
}
return minDiff;
}
Optimum oxygen
Salesforce โ
#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;
}.
Design a cache โ
#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;
}.
Design a cache โ
static int maximize(int arr[], int n)
{
int prefixSum[] = new int[n];
int totalSum = 0;
int maxPrefixSum = 0;
for (int i = 0; i < n; i++)
{
prefixSum[i] = maxPrefixSum ;
maxPrefixSum += arr[i];
totalSum += arr[i];
maxPrefixSum = Math.max(maxPrefixSum, -totalSum);
}
int maxSum = Math.max(totalSum, maxPrefixSum);
int suffixSum = 0;
for (int i = n - 1; i >= 0; --i)
{
suffixSum -= arr[i];
maxSum = Math.max(maxSum, suffixSum + prefixSum[i]);
}
return maxSum;
}. add this if size == 1:
return arr[0]
DE Shaw โ
{
int prefixSum[] = new int[n];
int totalSum = 0;
int maxPrefixSum = 0;
for (int i = 0; i < n; i++)
{
prefixSum[i] = maxPrefixSum ;
maxPrefixSum += arr[i];
totalSum += arr[i];
maxPrefixSum = Math.max(maxPrefixSum, -totalSum);
}
int maxSum = Math.max(totalSum, maxPrefixSum);
int suffixSum = 0;
for (int i = n - 1; i >= 0; --i)
{
suffixSum -= arr[i];
maxSum = Math.max(maxSum, suffixSum + prefixSum[i]);
}
return maxSum;
}. add this if size == 1:
return arr[0]
DE Shaw โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
static int maximize(int arr[], int n) { int prefixSum[] = new int[n]; int totalSum = 0; int maxPrefixSum = 0; for (int i = 0; i < n; i++) { prefixSum[i] = maxPrefixSum ;โฆ
if size == 1:
return arr[0]
return arr[0]
#include <iostream>
#include <vector>
using namespace std;
const int MOD = 1e9 + 7;
int F(int i, int k, int n, vector<int> &level, vector<int> &dp) {
if (i == n) return 1;
if (dp[i] != -1) return dp[i];
int ans = 0, odds = 0;
vector<int> hash(n + 10, 0);
for (int j = i; j < n; j++) {
if (++hash[level[j]] % 2 == 0) odds -= 1;
else odds += 1;
if (odds <= k) {
ans = (ans + F(j + 1, k, n, level, dp)) % MOD;
}
}
return dp[i] = ans;
}
int countValidPartitions(vector<int> level, int k) {
int n = level.size();
vector<int> dp(n, -1);
return F(0, k, n, level, dp);
}
DE Shaw โ
#include <vector>
using namespace std;
const int MOD = 1e9 + 7;
int F(int i, int k, int n, vector<int> &level, vector<int> &dp) {
if (i == n) return 1;
if (dp[i] != -1) return dp[i];
int ans = 0, odds = 0;
vector<int> hash(n + 10, 0);
for (int j = i; j < n; j++) {
if (++hash[level[j]] % 2 == 0) odds -= 1;
else odds += 1;
if (odds <= k) {
ans = (ans + F(j + 1, k, n, level, dp)) % MOD;
}
}
return dp[i] = ans;
}
int countValidPartitions(vector<int> level, int k) {
int n = level.size();
vector<int> dp(n, -1);
return F(0, k, n, level, dp);
}
DE Shaw โ
๐1
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
int getMaxMedian(vector<int> lower_bound, vector<int> upper_bound, long int max_sum) {
int n = lower_bound.size();
long long curr_sum = 0;
for (int i = 0; i < n; ++i) {
curr_sum += lower_bound[i] + upper_bound[i];
}
int num_elements = 2 * n;
long long target_sum = curr_sum + max_sum;
sort(upper_bound.begin(), upper_bound.end());
int median_index = num_elements / 2;
int left = 1, right = INT_MAX;
while (left <= right) {
int mid = left + (right - left) / 2;
long long sum = 0;
for (int i = 0; i < n; ++i) {
if (upper_bound[i] <= mid) {
sum += upper_bound[i];
} else {
sum += mid;
}
}
if (sum <= target_sum) {
left = mid + 1;
} else {
right = mid - 1;
}
}
return right;
}
int main() {
int n;
cin >> n;
vector<int> lower_bound(n);
vector<int> upper_bound(n);
for (int i = 0; i < n; ++i) {
cin >> lower_bound[i];
}
for (int i = 0; i < n; ++i) {
cin >> upper_bound[i];
}
long int max_sum;
cin >> max_sum;
int max_median = getMaxMedian(lower_bound, upper_bound, max_sum);
cout << max_median << endl;
return 0;
}
DE Shaw โ
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
int getMaxMedian(vector<int> lower_bound, vector<int> upper_bound, long int max_sum) {
int n = lower_bound.size();
long long curr_sum = 0;
for (int i = 0; i < n; ++i) {
curr_sum += lower_bound[i] + upper_bound[i];
}
int num_elements = 2 * n;
long long target_sum = curr_sum + max_sum;
sort(upper_bound.begin(), upper_bound.end());
int median_index = num_elements / 2;
int left = 1, right = INT_MAX;
while (left <= right) {
int mid = left + (right - left) / 2;
long long sum = 0;
for (int i = 0; i < n; ++i) {
if (upper_bound[i] <= mid) {
sum += upper_bound[i];
} else {
sum += mid;
}
}
if (sum <= target_sum) {
left = mid + 1;
} else {
right = mid - 1;
}
}
return right;
}
int main() {
int n;
cin >> n;
vector<int> lower_bound(n);
vector<int> upper_bound(n);
for (int i = 0; i < n; ++i) {
cin >> lower_bound[i];
}
for (int i = 0; i < n; ++i) {
cin >> upper_bound[i];
}
long int max_sum;
cin >> max_sum;
int max_median = getMaxMedian(lower_bound, upper_bound, max_sum);
cout << max_median << endl;
return 0;
}
DE Shaw โ
๐1
#include <iostream>
#include <vector>
using namespace std;
int findSingleSock(vector<int>& socks) {
int result = 0;
for (int num : socks) {
result ^= num;
}
return result;
}
int main() {
int N;
cin >> N;
vector<int> socks(N);
for (int i = 0; i < N; ++i) {
cin >> socks[i];
}
int singleSock = findSingleSock(socks);
cout << singleSock << endl;
return 0;
}
Missing sock โ
#include <vector>
using namespace std;
int findSingleSock(vector<int>& socks) {
int result = 0;
for (int num : socks) {
result ^= num;
}
return result;
}
int main() {
int N;
cin >> N;
vector<int> socks(N);
for (int i = 0; i < N; ++i) {
cin >> socks[i];
}
int singleSock = findSingleSock(socks);
cout << singleSock << endl;
return 0;
}
Missing sock โ