๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
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
Myworkdayjobs
Product Manager Intern
To get the best candidate experience, please consider applying for a maximum of 3 roles within 12 months to ensure you are not duplicating efforts. About Futureforce University Recruiting Our Futureforce University Recruiting program is dedicated to attractingโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
๐ฅ๐ฉKartik Agarwaal on LinkedIn: #walmartglobaltech #sparkplug2025 #internship #techopportunityโฆ
๐ Exciting Opportunity Alert: Sparkplug at Walmart - Summer Internship 2025 ๐
Walmart Global Tech India is offering a unique opportunity for students toโฆ
Walmart Global Tech India is offering a unique opportunity for students toโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Company Name: Orange mantra
Designation: Analyst
CTC: Up to 4 LPA
Qualification: Btech/MBA
Experience: Freshers or 6 months
Location: Gurgaon, Haryana
Employment type: Full Time
No of working days: 5
Skills Required
-Excellent Communication & Presentation skills
-Proficient in MS-office
-Data Analysis & reporting
-Research & Analytical skills.
*Note*: Immediate joiners preferred
Share your CV: chaudhary.pratima@orangemantra.in
Designation: Analyst
CTC: Up to 4 LPA
Qualification: Btech/MBA
Experience: Freshers or 6 months
Location: Gurgaon, Haryana
Employment type: Full Time
No of working days: 5
Skills Required
-Excellent Communication & Presentation skills
-Proficient in MS-office
-Data Analysis & reporting
-Research & Analytical skills.
*Note*: Immediate joiners preferred
Share your CV: chaudhary.pratima@orangemantra.in
long getMaxRequests(vector<int>& sc, vector<int>& ir, int k) {
int n = sc.size();
long total = 0;
vector<int> extra(n, 0);
for (int i = 0; i < n; i++) {
int h = min(sc[i], ir[i]);
total += h;
if (sc[i] < ir[i]) {
int dch = min(2 * sc[i], ir[i]);
extra[i] = dch - h;
}
}
sort(extra.rbegin(), extra.rend());
for (int i = 0; i < k; i++) {
total += extra[i];
}
return total;
}
Twillo โ
int n = sc.size();
long total = 0;
vector<int> extra(n, 0);
for (int i = 0; i < n; i++) {
int h = min(sc[i], ir[i]);
total += h;
if (sc[i] < ir[i]) {
int dch = min(2 * sc[i], ir[i]);
extra[i] = dch - h;
}
}
sort(extra.rbegin(), extra.rend());
for (int i = 0; i < k; i++) {
total += extra[i];
}
return total;
}
Twillo โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
int getMaxOccurrences(string components, int minLength, int maxLength, int maxUnique) {
const int mod = 1e9 + 7;
map<long, int> freq;
vector<int> count(26, 0);
int l = 0;
int ans = 0;
int noOfLetter = 0;
long hash_curr = 0;
long pow = 1;
for (int i = 0; i < minLength - 1; i++) {
pow = (pow * 53) % mod;
}
for (int r = 0; r < components.size(); r++) {
count[components[r] - 'a']++;
if (count[components[r] - 'a'] == 1) {
noOfLetter++;
}
if ((r - l + 1) > minLength) {
hash_curr = ((hash_curr - (components[l] - 'a' + 1) * pow) % mod + mod) % mod;
count[components[l] - 'a']--;
if (count[components[l] - 'a'] == 0) {
noOfLetter--;
}
l++;
}
hash_curr = ((hash_curr * 53) % mod + (components[r] - 'a' + 1)) % mod;
if ((noOfLetter <= maxUnique) && (r - l + 1) >= minLength && (r - l + 1) <= maxLength) {
ans = max(ans, ++freq[hash_curr]);
}
}
return ans;
}
Twillo โ
const int mod = 1e9 + 7;
map<long, int> freq;
vector<int> count(26, 0);
int l = 0;
int ans = 0;
int noOfLetter = 0;
long hash_curr = 0;
long pow = 1;
for (int i = 0; i < minLength - 1; i++) {
pow = (pow * 53) % mod;
}
for (int r = 0; r < components.size(); r++) {
count[components[r] - 'a']++;
if (count[components[r] - 'a'] == 1) {
noOfLetter++;
}
if ((r - l + 1) > minLength) {
hash_curr = ((hash_curr - (components[l] - 'a' + 1) * pow) % mod + mod) % mod;
count[components[l] - 'a']--;
if (count[components[l] - 'a'] == 0) {
noOfLetter--;
}
l++;
}
hash_curr = ((hash_curr * 53) % mod + (components[r] - 'a' + 1)) % mod;
if ((noOfLetter <= maxUnique) && (r - l + 1) >= minLength && (r - l + 1) <= maxLength) {
ans = max(ans, ++freq[hash_curr]);
}
}
return ans;
}
Twillo โ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
careerpage.co
QA Trainee (Software Test Engineer) job in Mohali - RChilli Inc.
Job Title: QA Fresher
Location: Mohali
Employment Type: Full-time, Work from Office
Eligibility:
Recent B.Tech graduates in Computer Science, IT, or a related field (2023/2024 pass-outs welcome).
Key Responsibilities:
Perform manualโฆ
Location: Mohali
Employment Type: Full-time, Work from Office
Eligibility:
Recent B.Tech graduates in Computer Science, IT, or a related field (2023/2024 pass-outs welcome).
Key Responsibilities:
Perform manualโฆ
๐ฅ1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Hiring Alerts for 3-6 months of Winter Internship Program'24!
Data & Business Analyst Intern
3-6 months internship with potential of PPO
Open positions: HR, Finance, Marketing, EA, BDA, Growth, Product, Interior Design, Product, SDE, Sales Analyst, Finance, BD, Graphic Design, Strategy, Sales and Growth.
Remote/Hybrid Work.
Immediate Joiner.
Competitive Compensation.
PS:CTC Starting from โน4.6 LPA, We will start interview process by 15th of Oct'24
College/Institutions are most welcome for internship fair.
Note: Just comment, Intrested or Drop your CV at career@minimalix.in and one of the our HR team will get in touch with you soon (TAT: 3 Working Days) and don't share your contact number in comment section. Minimalix
Data & Business Analyst Intern
3-6 months internship with potential of PPO
Open positions: HR, Finance, Marketing, EA, BDA, Growth, Product, Interior Design, Product, SDE, Sales Analyst, Finance, BD, Graphic Design, Strategy, Sales and Growth.
Remote/Hybrid Work.
Immediate Joiner.
Competitive Compensation.
PS:CTC Starting from โน4.6 LPA, We will start interview process by 15th of Oct'24
College/Institutions are most welcome for internship fair.
Note: Just comment, Intrested or Drop your CV at career@minimalix.in and one of the our HR team will get in touch with you soon (TAT: 3 Working Days) and don't share your contact number in comment section. Minimalix
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
For more details
+91 9500719621,
+91 9629311599
Email: dhanuja.g@applogiq.org
+91 9500719621,
+91 9629311599
Email: dhanuja.g@applogiq.org
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Sign Up | LinkedIn
500 million+ members | Manage your professional identity. Build and engage with your professional network. Access knowledge, insights and opportunities.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Sign Up | LinkedIn
500 million+ members | Manage your professional identity. Build and engage with your professional network. Access knowledge, insights and opportunities.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Fahad Kazi on LinkedIn: #collegeplacements #techinternship #hiring #frontenddeveloperโฆ | 125 comments
Attention College Placement Officers!
We at ImpactGuru are launching an exciting 6-month paid internship program for Frontend and Backend Developer Internsโฆ | 125 comments on LinkedIn
We at ImpactGuru are launching an exciting 6-month paid internship program for Frontend and Backend Developer Internsโฆ | 125 comments on LinkedIn