๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
int n;
void dfs(int i, int j, vector<string>& highways, vector<vector<bool>>& visited) {
if (i < 0 || i > 1 || j < 0 || j >= n || highways[i][j] == 'x' || visited[i][j])
return;
visited[i][j] = true;
dfs(i, j + 1, highways, visited);
dfs(i, j - 1, highways, visited);
dfs(1 - i, j, highways, visited);
}
int countComponents(vector<string>& highways) {
vector<vector<bool>> visited(2, vector<bool>(n, false));
int components = 0;
for (int i = 0; i < 2; ++i) {
for (int j = 0; j < n; ++j) {
if (!visited[i][j] && highways[i][j] == 'o') {
components++;
dfs(i, j, highways, visited);
}
}
}
return components;
}
int main() {
cin >> n;
vector<string> highways(2);
cin >> highways[0] >> highways[1];
int initialComponents = countComponents(highways);
if (initialComponents >= 3) {
cout << 0 << endl;
return 0;
}
int criticalSegments = 0;
for (int i = 0; i < 2; ++i) {
for (int j = 0; j < n; ++j) {
if (highways[i][j] == 'o') {
highways[i][j] = 'x';
int newComponents = countComponents(highways);
if (newComponents == 3) {
criticalSegments++;
}
highways[i][j] = 'o';
}
}
}
cout << criticalSegments << endl;
return 0;
}
Road Network Breakdown โ
Juspay
๐1
string largestMagical(string binString) {
if (binString.empty()) return binString;
vector<string> ans;
int cnt = 0, j = 0;
for (int i = 0; i < binString.size(); ++i) {
cnt += binString[i] == '1' ? 1 : -1;
if (cnt == 0) {
ans.push_back("1" + largestMagical(binString.substr(j + 1, i - j - 1)) + "0");
j = i + 1;
}
}
sort(ans.begin(), ans.end(), greater<string>());
return accumulate(ans.begin(), ans.end(), string{});
}
Nvidia โ
if (binString.empty()) return binString;
vector<string> ans;
int cnt = 0, j = 0;
for (int i = 0; i < binString.size(); ++i) {
cnt += binString[i] == '1' ? 1 : -1;
if (cnt == 0) {
ans.push_back("1" + largestMagical(binString.substr(j + 1, i - j - 1)) + "0");
j = i + 1;
}
}
sort(ans.begin(), ans.end(), greater<string>());
return accumulate(ans.begin(), ans.end(), string{});
}
Nvidia โ
๐2
#include <stdio.h>
#include <regex.h>
int isPowerOfTwo(const char *binaryString) {
regex_t regex;
int result;
result = regcomp(®ex, "^0*10*$", REG_EXTENDED);
if (result) {
printf("Could not compile regex\n");
return 0;
}
result = regexec(®ex, binaryString, 0, NULL, 0);
regfree(®ex);
if (!result) {
return 1;
} else {
return 0;
}
}
int main() {
int t;
char binaryString[1000];
scanf("%d", &t);
while (t--) {
scanf("%s", binaryString);
if (isPowerOfTwo(binaryString)) {
printf("True\n");
} else {
printf("False\n");
}
}
return 0;
}
Nvidia (Regex) โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Fijutsu is hiring for Apprentice
Exp : 2021/2022/2023/2024 batch passouts eligible
Apply Link : https://fujitsu.ripplehire.com/candidate/?token=xiOa3DUEJx25jui4MO8X&lang=en&source=LINKEDIN&ref=LI02
Exp : 2021/2022/2023/2024 batch passouts eligible
Apply Link : https://fujitsu.ripplehire.com/candidate/?token=xiOa3DUEJx25jui4MO8X&lang=en&source=LINKEDIN&ref=LI02
Ripplehire
Fujitsu Careers | Latest jobs at Fujitsu - Ripplehire.com
Apply Now! This is a wonderful opportunity. Help your friends by sharing this role with them.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐ANSR is hiring for Software Engineer I (0-2 years)
Experience: 0 - 1 year's
Expected Salary: 5-12 LPA
Apply here: https://www.linkedin.com/jobs/view/3996276754/?alternateChannel=search
๐Irdeto is hiring for Software Engineer
Experience: 0 - 1 year's
Expected Salary: 8-12 LPA
Apply here: https://careers.irdeto.com/job/Noida-Software-Engineer/1213761400/
๐Medpace is hiring for Entry Level Software Engineer
Experience: 0 - 1 year's
Expected Salary: 5-12 LPA
Apply here: https://careers.medpace.com/jobs/9986?lang=en-us&iis=Job+Board&iisn=LinkedIn
Experience: 0 - 1 year's
Expected Salary: 5-12 LPA
Apply here: https://www.linkedin.com/jobs/view/3996276754/?alternateChannel=search
๐Irdeto is hiring for Software Engineer
Experience: 0 - 1 year's
Expected Salary: 8-12 LPA
Apply here: https://careers.irdeto.com/job/Noida-Software-Engineer/1213761400/
๐Medpace is hiring for Entry Level Software Engineer
Experience: 0 - 1 year's
Expected Salary: 5-12 LPA
Apply here: https://careers.medpace.com/jobs/9986?lang=en-us&iis=Job+Board&iisn=LinkedIn
Linkedin
ANSR hiring Software Engineer I [T500-13313] in Bengaluru, Karnataka, India | LinkedIn
Posted 6:48:57 AM. Position Responsibilities:Gather user requirements from manufacturing and engineering teams for newโฆSee this and similar jobs on LinkedIn.
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>using namespace std;
struct Person {
string name;
int age;
string city;
int salary;
};
int countAgeMoreThanK(const vector<Person> &people, int k) {
int count = 0;
for(const auto &person : people) {
if(person.age > k) {
count++;
}
}
return count;
}
int countPersonsFromCity(const vector<Person> &people, const string &c) {
int count = 0;
for(const auto &person : people) {
if(person.city == c) {
count++;
}
}
return count;
}
int countSalaryBetween(const vector<Person> &people, int min_sal, int max_sal) {
int count = 0;
for(const auto &person : people) {
if(person.salary >= min_sal && person.salary <= max_sal) {
count++;
}
}
return count;
}
int main(){
ios::sync_with_stdio(false);
cin.tie(NULL);
int n, q;
cin >> n >> q;
vector<Person> people(n);
for(int i = 0; i < n; ++i){
cin >> people[i].name >> people[i].age >> people[i].city >> people[i].salary;
}
while(q--){
int type;
cin >> type;
if(type == 1){
int k;
cin >> k;
int result = countAgeMoreThanK(people, k);
cout << result << "\n";
}
else if(type == 2){
string c;
cin >> c;
int result = countPersonsFromCity(people, c);
cout << result << "\n";
}
else if(type == 3){
int min_sal, max_sal;
cin >> min_sal >> max_sal;
int result = countSalaryBetween(people, min_sal, max_sal);
cout << result << "\n";
}
}
return 0;
}
Country survey โ
Amdocs
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
bool isPrime(int num) {
if (num <= 1) return true;
if (num == 2) return true;
if (num % 2 == 0) return false;
for (int i = 3; i <= sqrt(num); i += 2) {
if (num % i == 0) return false;
}
return true;
}
int nearestPrime(int num) {
if (isPrime(num)) return num;
int lower = num - 1, higher = num + 1;
while (lower > 1 || higher <= 1e5) {
if (lower > 1 && isPrime(lower)) return lower;
if (isPrime(higher)) return higher;
lower--;
higher++;
}
return 2;
}
int main() {
int N, M;
cin >> N >> M;
vector<vector<int>> matrix(N, vector<int>(M));
for (int i = 0; i < N; ++i) {
for (int j = 0; j < M; ++j) {
cin >> matrix[i][j];
}
}
for (int i = 0; i < N; ++i) {
for (int j = 0; j < M; ++j) {
int currentElement = matrix[i][j];
if (isPrime(currentElement)) {
if (i - 1 >= 0) {
if (isPrime(matrix[i - 1][j])) {
matrix[i - 1][j] *= 2;
} else {
matrix[i - 1][j] = nearestPrime(matrix[i - 1][j]);
}
}
if (j + 1 < M) {
if (isPrime(matrix[i][j + 1])) {
matrix[i][j + 1] *= 2;
} else {
matrix[i][j + 1] = nearestPrime(matrix[i][j + 1]);
}
}
if (i + 1 < N) {
if (isPrime(matrix[i + 1][j])) {
matrix[i + 1][j] *= 2;
} else {
matrix[i + 1][j] = nearestPrime(matrix[i + 1][j]);
}
}
if (j - 1 >= 0) {
if (isPrime(matrix[i][j - 1])) {
matrix[i][j - 1] *= 2;
} else {
matrix[i][j - 1] = nearestPrime(matrix[i][j - 1]);
}
}
}
}
}
for (int i = 0; i < N; ++i) {
for (int j = 0; j < M; ++j) {
cout << matrix[i][j] << " ";
}
cout << endl;
}
return 0;
}
MasterCard (FTE) โ
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> c(8);
for (int i = 0; i < 8; i++) {
cin >> c[i];
}
int p;
cin >> p;
bool conflict[8][8];
memset(conflict, false, sizeof(conflict));
for (int i = 0; i < p; i++) {
int a, b;
cin >> a >> b;
conflict[a-1][b-1] = true;
conflict[b-1][a-1] = true;
}
int maxMoney = 0;
for (int mask = 0; mask < (1 << 8); mask++) {
bool valid = true;
int total = 0;
for (int i = 0; i < 8 && valid; i++) {
if (mask & (1 << i)) {
total += c[i];
for (int j = i + 1; j < 8; j++) {
if ((mask & (1 << j)) && conflict[i][j]) {
valid = false;
break;
}
}
}
}
if (valid) {
maxMoney = max(maxMoney, total);
}
}
cout << maxMoney << endl;
return 0;
}
Atlanโ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Send your resumes to Careers@tsworks.io
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Google
Role : Hardware Engineering Intern - Winter - 6 months
Batch : 2025/2026 passouts - circuital branches
Link : https://www.google.com/about/careers/applications/jobs/results/123206176530670278-hardware-engineering-intern,-winter-2025-%28english%29
Role : Hardware Engineering Intern - Winter - 6 months
Batch : 2025/2026 passouts - circuital branches
Link : https://www.google.com/about/careers/applications/jobs/results/123206176530670278-hardware-engineering-intern,-winter-2025-%28english%29
#include <iostream>
#include <set>
#include <cmath>
using namespace std;
int ss(int N) {
set<int> s;
for (int p = 1; p * p <= N; ++p)
{
int r = p * p;
for (int q = 1; q * q * q <= N; ++q)
{
int cube = q * q * q;
int sum = r + cube;
if (sum <= N)
{
s.insert(sum);
}
}
}
return s.size();
}
int main()
{
int N;
cin >> N;
cout << ss(N) << endl;
return 0;
}
Count Perfect Sums โ
Airtel
๐1
Enjoy our content? Advertise on this channel and reach a highly engaged audience! ๐๐ป
It's easy with Telega.io. As the leading platform for native ads and integrations on Telegram, it provides user-friendly and efficient tools for quick and automated ad launches.
โก๏ธ Place your ad here in three simple steps:
1 Sign up
2 Top up the balance in a convenient way
3 Create your advertising post
If your ad aligns with our content, weโll gladly publish it.
Start your promotion journey now!
It's easy with Telega.io. As the leading platform for native ads and integrations on Telegram, it provides user-friendly and efficient tools for quick and automated ad launches.
โก๏ธ Place your ad here in three simple steps:
1 Sign up
2 Top up the balance in a convenient way
3 Create your advertising post
If your ad aligns with our content, weโll gladly publish it.
Start your promotion journey now!
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Salesforce
Role: Product Manager Intern
Batch eligible: 2026 grads
Apply: https://salesforce.wd12.myworkdayjobs.com/External_Career_Site/job/India---Hyderabad/Product-Manager-Intern_JR266936
Role: Product Manager Intern
Batch eligible: 2026 grads
Apply: https://salesforce.wd12.myworkdayjobs.com/External_Career_Site/job/India---Hyderabad/Product-Manager-Intern_JR266936