string matrixbit(string num)
{
string ans ="",s="";
for(int i=0;i<(int)num.size()-1;i++)
{
if((num[i]-'0')%2==(num[i+1]-'0')%2)
s+=num[i];
else
{
s+=num[i];
sort(s.rbegin(),s.rend());
ans+=s;
s="";
}
}
s+=num[(int)num.size()-1];
sort(s.rbegin(),s.rend());
ans+=s;
return ans;
}
{
string ans ="",s="";
for(int i=0;i<(int)num.size()-1;i++)
{
if((num[i]-'0')%2==(num[i+1]-'0')%2)
s+=num[i];
else
{
s+=num[i];
sort(s.rbegin(),s.rend());
ans+=s;
s="";
}
}
s+=num[(int)num.size()-1];
sort(s.rbegin(),s.rend());
ans+=s;
return ans;
}
def convert_to_snaky_pattern(s, numRows):
if numRows == 1 or numRows >= len(s):
return s
result = ''
cycle_length = 2 * numRows - 2
for i in range(numRows):
for j in range(i, len(s), cycle_length):
result += s[j]
if i != 0 and i != numRows - 1:
second_j = j + cycle_length - 2 * i
if second_j < len(s):
result += s[second_j]
return result
Snake pattern โ
if numRows == 1 or numRows >= len(s):
return s
result = ''
cycle_length = 2 * numRows - 2
for i in range(numRows):
for j in range(i, len(s), cycle_length):
result += s[j]
if i != 0 and i != numRows - 1:
second_j = j + cycle_length - 2 * i
if second_j < len(s):
result += s[second_j]
return result
Snake pattern โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Atlassian
Role: Software Engineer
Batch eligible: 2022 and 2023 passouts
Apply: https://www.atlassian.com/company/careers/details/12515
Role: Software Engineer
Batch eligible: 2022 and 2023 passouts
Apply: https://www.atlassian.com/company/careers/details/12515
Atlassian
Job Details | Atlassian
static public int minLaneChanges(int[] A) {
int[] dp = new int[]{1, 0, 1};
for (int a: A) {
if (a > 0)
dp[a - 1] = 1000000;
for (int i = 0; i < 3; ++i)
if (a != i + 1)
dp[i] = Math.min(dp[i], Math.min(dp[(i + 1) % 3], dp[(i + 2) % 3]) + 1);
}
return Math.min(dp[0], Math.min(dp[1], dp[2]));
}
Limited SubwaySufarโ
int[] dp = new int[]{1, 0, 1};
for (int a: A) {
if (a > 0)
dp[a - 1] = 1000000;
for (int i = 0; i < 3; ++i)
if (a != i + 1)
dp[i] = Math.min(dp[i], Math.min(dp[(i + 1) % 3], dp[(i + 2) % 3]) + 1);
}
return Math.min(dp[0], Math.min(dp[1], dp[2]));
}
Limited SubwaySufarโ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Rupeek
Role: SDE 1
Batch eligible: 2021, 2022 and 2023 grads
Apply: https://docs.google.com/forms/d/e/1FAIpQLSc4Qj_TgzYpOIZBqIgUHhVdIzetkZ6E0DZRasAVbTJbxppFBw/viewform
Role: SDE 1
Batch eligible: 2021, 2022 and 2023 grads
Apply: https://docs.google.com/forms/d/e/1FAIpQLSc4Qj_TgzYpOIZBqIgUHhVdIzetkZ6E0DZRasAVbTJbxppFBw/viewform
#include<bits/stdc++.h>
using namespace std;
bool check(int mid, int n, int m, int k) {
int cnt = 0;
for(int i = 1; i <= n; i++) {
cnt += min(mid/i, m);
}
return (cnt < k);
}
int solve(int n, int m, int k) {
int l = 1, h = n*m+1;
while(l < h) {
int mid = l + (h- l) / 2;
if(check(mid, n, m, k)) l = mid + 1;
else h = mid;
}
return l;
}
int main() {
int t;
cin >> t;
while(t--) {
int n, m, k;
cin >> n >> m >> k;
cout << solve(n, m, k) << endl;
}
return 0;
}
Matrix Enigma โ
using namespace std;
bool check(int mid, int n, int m, int k) {
int cnt = 0;
for(int i = 1; i <= n; i++) {
cnt += min(mid/i, m);
}
return (cnt < k);
}
int solve(int n, int m, int k) {
int l = 1, h = n*m+1;
while(l < h) {
int mid = l + (h- l) / 2;
if(check(mid, n, m, k)) l = mid + 1;
else h = mid;
}
return l;
}
int main() {
int t;
cin >> t;
while(t--) {
int n, m, k;
cin >> n >> m >> k;
cout << solve(n, m, k) << endl;
}
return 0;
}
Matrix Enigma โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
def solve(n, digits, k): x = int(''.join(map(str, digits))) rem = x % k for i in range(1, n): x = (x % (10 ** (n - 1))) * 10 + digits[i - 1] rem = min(rem, x % k) return rem The Cyclic Notebook โ
#include<bits/stdc++.h>
using namespace std;
long long solve(int n, vector<int> dig, int k) {
long long x = 0;
for(int i = 0; i < n; i++) {
x = x * 10 + dig[i];
}
long long rem = x % k;
for(int i = 1; i < n; i++) {
x = (x % (long long)pow(10, n - 1)) * 10 + dig[i - 1];
rem = min(rem, (long long)(x % k));
}
return rem;
}
int main() {
int n, k;
cin >> n;
vector<int> dig(n);
for(int i = 0; i < n; i++) {
cin >> dig[i];
}
cin >> k;
cout << solve(n, dig, k) << endl;
return 0;
}
The Cyclic Notebook โ
using namespace std;
long long solve(int n, vector<int> dig, int k) {
long long x = 0;
for(int i = 0; i < n; i++) {
x = x * 10 + dig[i];
}
long long rem = x % k;
for(int i = 1; i < n; i++) {
x = (x % (long long)pow(10, n - 1)) * 10 + dig[i - 1];
rem = min(rem, (long long)(x % k));
}
return rem;
}
int main() {
int n, k;
cin >> n;
vector<int> dig(n);
for(int i = 0; i < n; i++) {
cin >> dig[i];
}
cin >> k;
cout << solve(n, dig, k) << endl;
return 0;
}
The Cyclic Notebook โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐WebGo Software Labs is Hiring !!
Role: Software Engineering Intern
Batch: 2024
Expected Stipend: 30-50k per month
Duration: 6 months
Apply here- https://www.linkedin.com/jobs/view/3787333550
Role: Software Engineering Intern
Batch: 2024
Expected Stipend: 30-50k per month
Duration: 6 months
Apply here- https://www.linkedin.com/jobs/view/3787333550
Linkedin
54 Software Engineer Intern jobs in India (3 new)
Todayโs top 54 Software Engineer Intern jobs in India. Leverage your professional network, and get hired. New Software Engineer Intern jobs added daily.
โ๏ธPropel Off Campus Drive Hiring Freshers As Software Developer | 4 LPA*โ๏ธ
๐จโ๐ปJob Role : Software Developer
๐Qualification : B.E/B.Tech
๐Experience : Freshers
๐ฐPackage : 4 LPA*
โญ๏ธ Apply Fast : https://csalgo.us/2023/12/18/propel-off-campus-drive-software-developer/
๐จโ๐ปJob Role : Software Developer
๐Qualification : B.E/B.Tech
๐Experience : Freshers
๐ฐPackage : 4 LPA*
โญ๏ธ Apply Fast : https://csalgo.us/2023/12/18/propel-off-campus-drive-software-developer/
Jobs โ CSAlgo.US
Propel Off Campus Drive Hiring Freshers As Software Developer | 4 LPA*
Propel's Off-Campus Drive is your gateway to a Software Developer role with a stellar 4 LPA* salary. Don't miss this chance to kickstart your career in tech โ apply now!
โ๏ธClinisys Off Campus Drive 2023 | Associate Software Engineer | Pan India | 4-6 LPA*โ๏ธ
๐จโ๐ป Job Role : Associate Software Engineer
๐Qualification : BE/B.Tech/BSC/BCA/MCA or Related
๐Experience : Freshers/0-2 Year
๐ฐPackage : 4-6 LPA*
โญ๏ธ Apply Fast : https://csalgo.us/2023/12/18/clinisys-off-campus-drive-2023-associate-software-engineer/
๐จโ๐ป Job Role : Associate Software Engineer
๐Qualification : BE/B.Tech/BSC/BCA/MCA or Related
๐Experience : Freshers/0-2 Year
๐ฐPackage : 4-6 LPA*
โญ๏ธ Apply Fast : https://csalgo.us/2023/12/18/clinisys-off-campus-drive-2023-associate-software-engineer/
Jobs โ CSAlgo.US
Clinisys Off Campus Drive 2023 | Associate Software Engineer | Pan India | 4-6 LPA*
Clinisys is conducting an Off-Campus Drive in 2023 for Associate Software Engineers across India. Unlock a career with a 4-6 LPA salary. Apply now and shape the future of healthcare tech!
โ๏ธGeeksForGeeks Mega Job A Thon Hiring Challenge for Freshers | 3-12 LPA*โ๏ธ
๐จโ๐ป Job Role : Multiple Roles
๐ Qualification : B.E/B.Tech/ME/M.Tech
๐ Experience : Freshers
๐ฐPackage : 3-12 LPA*
โญ๏ธ Apply Fast : https://csalgo.us/2023/12/18/geeksforgeeks-mega-jobathon-freshers-hiring/
๐จโ๐ป Job Role : Multiple Roles
๐ Qualification : B.E/B.Tech/ME/M.Tech
๐ Experience : Freshers
๐ฐPackage : 3-12 LPA*
โญ๏ธ Apply Fast : https://csalgo.us/2023/12/18/geeksforgeeks-mega-jobathon-freshers-hiring/
Jobs โ CSAlgo.US
GeeksForGeeks Mega Job A Thon Hiring Challenge for Freshers | 3-12 LPA*
GeeksForGeeks Mega Job-A-Thon is your chance to land a dream job as a fresher with salaries from 3-12 LPA. Don't miss this incredible opportunity โ apply now and kickstart your career journey!
โ๏ธRetransform Off Campus Drive Hiring As SQL Trainee Developer | 3-6 LPA*โ๏ธ
๐จโ๐ป Job Role : SQL Trainee Developer
๐Qualification : B.E/B.Tech
๐Experience : 0 โ 6 years
๐ฐPackage : 3-6 LPA*
โญ๏ธ Apply Fast : https://csalgo.us/2023/12/18/retransform-off-campus-drive-sql-trainee-developer/
๐จโ๐ป Job Role : SQL Trainee Developer
๐Qualification : B.E/B.Tech
๐Experience : 0 โ 6 years
๐ฐPackage : 3-6 LPA*
โญ๏ธ Apply Fast : https://csalgo.us/2023/12/18/retransform-off-campus-drive-sql-trainee-developer/
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Thetradedesk
Role: Summer Intern
Batch eligible: 2024 and 2025 passouts
Apply: https://careers.thetradedesk.com/jobs/4150177007/2024-summer-internship-software-engineering-bangalore
Role: Summer Intern
Batch eligible: 2024 and 2025 passouts
Apply: https://careers.thetradedesk.com/jobs/4150177007/2024-summer-internship-software-engineering-bangalore
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Ghulam Kashif on LinkedIn: Hexaview Technologies is hiring for QA(Fresher) for Noidaโฆ | 663 comments
Hexaview Technologies is hiring for QA(Fresher) for Noida location.
Position:-Software Quality Engineer (Fresher)
Location:- Noida
Eligibility Criteria -โฆ | 663 comments on LinkedIn
Position:-Software Quality Engineer (Fresher)
Location:- Noida
Eligibility Criteria -โฆ | 663 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐QIC Digital Hub is Hiring !!
Role: FullStack developer
Salary: 36k - 48k USD/year
Location: Remote
Apply here- https://anywhere100.com/job/fullstack-developer-qic-digital-hub-260
Role: FullStack developer
Salary: 36k - 48k USD/year
Location: Remote
Apply here- https://anywhere100.com/job/fullstack-developer-qic-digital-hub-260
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Portle is Hiring !!
Role: Frontend Software Engineer
Salary: 5 - 7 LPA
Location: Remote
Apply here: https://wellfound.com/jobs/2636975-react-sorcerer-remote-frontend-software-engineer
Role: Frontend Software Engineer
Salary: 5 - 7 LPA
Location: Remote
Apply here: https://wellfound.com/jobs/2636975-react-sorcerer-remote-frontend-software-engineer
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Frontend developer internship
For 2025/2026 Grads
https://www.linkedin.com/posts/ravinder-pal-singhh_we-are-looking-to-hire-2nd-and-3rd-year-college-activity-7142438105487224832-J1jz?utm_source=share&utm_medium=member_android
For 2025/2026 Grads
https://www.linkedin.com/posts/ravinder-pal-singhh_we-are-looking-to-hire-2nd-and-3rd-year-college-activity-7142438105487224832-J1jz?utm_source=share&utm_medium=member_android
Linkedin
Sign Up | LinkedIn
500 million+ members | Manage your professional identity. Build and engage with your professional network. Access knowledge, insights and opportunities.
GKN Aerospace Off Campus Drive 2024 โ Hiring Engineering Graduates | 6-10 LPA*
Job Role : Graduate Engineer
Qualification : BE/B.Tech/ME/M.Tech
Experience : Freshers
Job Location : Bangalore
Package : 6-10 LPA*
https://csalgo.us/2023/12/19/gkn-aerospace-off-campus-drive-2024-engineering-graduates/
Job Role : Graduate Engineer
Qualification : BE/B.Tech/ME/M.Tech
Experience : Freshers
Job Location : Bangalore
Package : 6-10 LPA*
https://csalgo.us/2023/12/19/gkn-aerospace-off-campus-drive-2024-engineering-graduates/
RSA Recruitment 2024 for Software Engineer-Apprentice | B.E/B.Tech | 4-6 LPA
Job Role : Software Engineer-Apprentice
Qualification : B.E/B.Tech
Experience : Freshers
Salary : 4-6 LPA*
https://csalgo.us/2023/12/19/rsa-recruitment-2024-software-engineer-apprentice/
Job Role : Software Engineer-Apprentice
Qualification : B.E/B.Tech
Experience : Freshers
Salary : 4-6 LPA*
https://csalgo.us/2023/12/19/rsa-recruitment-2024-software-engineer-apprentice/