๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
bool bfs(int numFruits, vector<vector<int>>& graph, vector<int>& pairU, vector<int>& pairV, vector<int>& dist) {
queue<int> q;
for (int u = 1; u <= numFruits; ++u) {
if (pairU[u] == 0) {
dist[u] = 0;
q.push(u);
} else {
dist[u] = INT_MAX;
}
}
dist[0] = INT_MAX;
while (!q.empty())
{
int u = q.front();
q.pop();
if (dist[u] < dist[0]) {
for (int v : graph[u]) {
if (dist[pairV[v]] == INT_MAX) {
dist[pairV[v]] = dist[u] + 1;
q.push(pairV[v]);
}
}
}
}
return dist[0] != INT_MAX;
}
bool dfs(int u, vector<vector<int>>& graph, vector<int>& pairU, vector<int>& pairV, vector<int>& dist) {
if (u != 0) {
for (int v : graph[u]) {
if (dist[pairV[v]] == dist[u] + 1 && dfs(pairV[v], graph, pairU, pairV, dist)) {
pairV[v] = u;
pairU[u] = v;
return true;
}
}
dist[u] = INT_MAX;
return false;
}
return true;
}
int hopcroftKarp(int numFruits, int numFriends, vector<vector<int>>& graph) {
vector<int> pairU(numFruits + 1, 0);
vector<int> pairV(numFriends + 1, 0);
vector<int> dist(numFruits + 1);
int matching = 0;
while (bfs(numFruits, graph, pairU, pairV, dist)) {
for (int u = 1; u <= numFruits; ++u) {
if (pairU[u] == 0 && dfs(u, graph, pairU, pairV, dist)) {
++matching;
}
}
}
return matching;
}
int main() {
int numOfFriends;
cin >> numOfFriends;
vector<vector<int>> preferences(numOfFriends + 1);
for (int i = 1; i <= numOfFriends; ++i) {
int count;
cin >> count;
preferences[i].resize(count);
for (int j = 0; j < count; ++j) {
cin >> preferences[i][j];
}
}
int numRows, numCols;
cin >> numRows >> numCols;
int numFruits = numRows * numCols;
vector<vector<int>> graph(numFruits + 1);
for (int i = 1; i <= numOfFriends; ++i) {
for (int fruit : preferences[i]) {
if (fruit >= 1 && fruit <= numFruits) {
graph[fruit].push_back(i);
}
}
}
cout << hopcroftKarp(numFruits, numOfFriends, graph) << endl;
return 0;
}
//shl max's birthday โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Guardian
Roles : Software Engineers - Junior (React JS and Java SprintBoot)
Batch : 2023/2022/2021/2020 passouts
Hiring Opportunity + Prizes
Link to apply :
React JS : https://bit.ly/GuardianReactJS
Java Springboot : https://bit.ly/GuardianJavaSpringboot
Roles : Software Engineers - Junior (React JS and Java SprintBoot)
Batch : 2023/2022/2021/2020 passouts
Hiring Opportunity + Prizes
Link to apply :
React JS : https://bit.ly/GuardianReactJS
Java Springboot : https://bit.ly/GuardianJavaSpringboot
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐ClaySYs Hiring for AI/ML Engineer
Experience: Fresher
๐ปApply: https://www.claysys.com/openings/?id=MjQz
Experience: Fresher
๐ปApply: https://www.claysys.com/openings/?id=MjQz
ClaySys Technologies
Openings - ClaySys Technologies
Apply for the position of Project Manager - L1 at our All Locations office
#include <bits/stdc++.h>
using namespace std;
int prime[100001] = {0};
int k[100001] = {0};
void Sieve() {
for (int i = 1; i < 100001; i++)
k[i] = i;
for (int i = 2; i < 100001; i++) {
if (prime[i] == 0) {
for (int j = i; j < 100001; j += i) {
prime[j] = 1;
while (k[j] % (i * i) == 0)
k[j] /= (i * i);
}
}
}
}
int countPairs(int arr[], int n) {
unordered_map<int, int> freq;
for (int i = 0; i < n; i++) {
freq[k[arr[i]]]++;
}
int sum = 0;
for (auto i : freq) {
sum += ((i.second - 1) * i.second) / 2;
}
return sum;
}
int main() {
int n;
cin >> n;
int arr[n];
for (int i = 0; i < n; i++) {
arr[i] = i + 1;
}
Sieve();
cout << n + 2 * countPairs(arr, n) << endl;
return 0;
}
Square investmentโ
Sirion
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐จ Referral Alert ๐จ
1) Company - Lazy Yatra
Role - Web Developer Intern
Batch - 2023/2024/2025/2026
Stipend - 20-35k/month
Location - Remote
PPO after Internship
Skills - Dive into HTML, CSS, JavaScript, and frameworks to create stunning websites.
2) Company - Lazy Yatra
Role - Python Developer Intern
Batch - 2023/2024/2025/2026
Stipend - 20-35k/month
Location - Remote
PPO after Internship
Skills - Build scripts, work on backend systems, and explore data-driven projects.
Apply Link -
https://docs.google.com/forms/d/e/1FAIpQLSdufnDK-3rravq9CuU899vU88_PgyhmzB8F0Y8C5ClRzDePDw/viewform
1) Company - Lazy Yatra
Role - Web Developer Intern
Batch - 2023/2024/2025/2026
Stipend - 20-35k/month
Location - Remote
PPO after Internship
Skills - Dive into HTML, CSS, JavaScript, and frameworks to create stunning websites.
2) Company - Lazy Yatra
Role - Python Developer Intern
Batch - 2023/2024/2025/2026
Stipend - 20-35k/month
Location - Remote
PPO after Internship
Skills - Build scripts, work on backend systems, and explore data-driven projects.
Apply Link -
https://docs.google.com/forms/d/e/1FAIpQLSdufnDK-3rravq9CuU899vU88_PgyhmzB8F0Y8C5ClRzDePDw/viewform
๐1
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll maxPyramidHeight(ll N, vector<ll>& arr) {
sort(arr.begin(), arr.end());
ll height = 0;
ll blocks_used = 0;
ll current_level_blocks = 1;
while (blocks_used + current_level_blocks <= N) {
blocks_used += current_level_blocks;
height++;
current_level_blocks++;
}
return height;
}
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Stripe
Batch : 2025 passouts
Role : Software Engineer
Link : https://stripe.com/jobs/listing/software-engineer-new-grad/6172694
Batch : 2025 passouts
Role : Software Engineer
Link : https://stripe.com/jobs/listing/software-engineer-new-grad/6172694
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company: PwC
Program: Acceleration Center - Products & Technology - Intern - 2025
Batch: 2025
Apply: https://jobs-ta.pwc.com/global/en/job/PACPACGLOBAL570988WDEXTERNALENGLOBAL/Acceleration-Center-Products-Technology-Intern-2025
Program: Acceleration Center - Products & Technology - Intern - 2025
Batch: 2025
Apply: https://jobs-ta.pwc.com/global/en/job/PACPACGLOBAL570988WDEXTERNALENGLOBAL/Acceleration-Center-Products-Technology-Intern-2025
โค1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Varun Gupta on LinkedIn: Summer Internship - Apr 2025 cohort | 37 comments
Thrilled to announce the two-month Summer Internship Program of Bombay Shaving Company starting 1 April 2025. We are a crazy company and we are looking forโฆ | 37 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
#idbiintech #java #jsp #jspservlet #spring #springboot #angular #jsโฆ | Shruti Padwal | 169 comments
IDBI Intech LTD is hiring JAVA Developer
#idbiintech #java #jsp #jspservlet #spring #springboot #angular #js #reactjs #hibernate #webservices #oracle #plsql #sql #hiring #belapur #mumbai #jobforyou #job2024 | 169 comments on LinkedIn
#idbiintech #java #jsp #jspservlet #spring #springboot #angular #js #reactjs #hibernate #webservices #oracle #plsql #sql #hiring #belapur #mumbai #jobforyou #job2024 | 169 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Sowparnika Software Giant on LinkedIn: #softwaregiant #intern #opportunity #remote #flutter #react #salesโฆ
At Software Giant, we are hiring interns for the following roles:
โ Sales and Marketing Intern
You should have excellent communication.
โ Flutter Developerโฆ
โ Sales and Marketing Intern
You should have excellent communication.
โ Flutter Developerโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Multiple Hiring in Cybersecurity Domain
Remote Internship
Experience: 0 - 1 years
๐ปApply here: https://encryptedgelabs.zohorecruit.com/jobs/Careers
Remote Internship
Experience: 0 - 1 years
๐ปApply here: https://encryptedgelabs.zohorecruit.com/jobs/Careers
#include <bits/stdc++.h>
using namespace std;
int solve(int n) {
if (n <= 0) return 1;
return (1 << (int)(log2(n - 1) + 1));
}
int main() {
int N;
cin >> N;
vector<int> A(N);
for (int i = 0; i < N; i++) {
cin >> A[i];
}
vector<int> squaredA(N);
for (int i = 0; i < N; i++) {
squaredA[i] = A[i] * A[i];
}
vector<int> setBits(N);
int minSetBits = INT_MAX;
int maxSetBits = INT_MIN;
int X, Y;
for (int i = 0; i < N; i++) {
setBits[i] = __builtin_popcount(squaredA[i]);
if (setBits[i] < minSetBits) {
minSetBits = setBits[i];
Y = squaredA[i];
}
if (setBits[i] > maxSetBits)
{
maxSetBits = setBits[i];
X = squaredA[i];
}
}
int product = X * Y;
int result = solve(product);
cout << result << endl;
return 0;
}
Max-Min set Bits โ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Sugar fit is hiring for Web Developer
Experience: 0-1 years
Expected Salary: 12-20 LPA
Apply here: https://www.linkedin.com/jobs/view/4087340543/?alternateChannel=search
Experience: 0-1 years
Expected Salary: 12-20 LPA
Apply here: https://www.linkedin.com/jobs/view/4087340543/?alternateChannel=search
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Zelis is hiring for Associate Software Engineer
Experience: 0 -1 years
Expected Salary: 5-10 LPA
Apply here: https://zelis.wd1.myworkdayjobs.com/ZelisCareers/job/India-Hyderabad/Associate-Software-Engineer_JR107114?source=LinkedIn
Experience: 0 -1 years
Expected Salary: 5-10 LPA
Apply here: https://zelis.wd1.myworkdayjobs.com/ZelisCareers/job/India-Hyderabad/Associate-Software-Engineer_JR107114?source=LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Send Your Resume Here jobs@aimleap.com