#include <vector>
#include <iostream>
using namespace std;
int longestDiagonalSegment(vector<vector<int>>& matrix) {
int rows = matrix.size();
int cols = matrix[0].size();
int longest = 0;
int dR[] = {-1, 1, -1, 1};
int dC[] = {1, 1, -1, -1};
for (int r = 0; r < rows; ++r) {
for (int c = 0; c < cols; ++c) {
for (int dir = 0; dir < 4; ++dir) {
int len = 0;
int rPos = r, cPos = c;
int pattern[] = {1, 2, 0, 2, 0, 2, 0};
int pIdx = 0;
while (rPos >= 0 && rPos < rows && cPos >= 0 && cPos < cols) {
if (matrix[rPos][cPos] == pattern[pIdx]) {
++len;
pIdx = (pIdx + 1) % 7;
} else {
break;
}
rPos += dR[dir];
cPos += dC[dir];
}
longest = max(longest, len);
}
}
}
return longest;
}
Visa โ
def canonical_form(s):
mapping = {}
form = []
next_index = 0
for char in s:
if char not in mapping:
mapping[char] = next_index
next_index += 1
form.append(mapping[char])
return tuple(form)
def solve(N, Q, S, K):
canonical_map = {}
for string in S:
form = canonical_form(string)
if form not in canonical_map:
canonical_map[form] = 0
canonical_map[form] += 1
result = []
for query in K:
query_form = canonical_form(query)
result.append(canonical_map.get(query_form, 0))
return result
Google โ
mapping = {}
form = []
next_index = 0
for char in s:
if char not in mapping:
mapping[char] = next_index
next_index += 1
form.append(mapping[char])
return tuple(form)
def solve(N, Q, S, K):
canonical_map = {}
for string in S:
form = canonical_form(string)
if form not in canonical_map:
canonical_map[form] = 0
canonical_map[form] += 1
result = []
for query in K:
query_form = canonical_form(query)
result.append(canonical_map.get(query_form, 0))
return result
Google โ
#include <vector>
using namespace std;
vector<int> solution(vector<int> forest, int bird) {
vector<int> pos;
int total_length = 0;
int direction = 1;
int n = forest.size();
while (total_length < 100) {
if (direction == 1) {
for (int i = bird + 1; i < n; i++) {
if (forest[i] > 0) {
pos.push_back(i);
total_length += forest[i];
forest[i] = 0;
break;
}
}
} else {
for (int i = bird - 1; i >= 0; i--) {
if (forest[i] > 0) {
pos.push_back(i);
total_length += forest[i];
forest[i] = 0;
break;
}
}
}
direction *= -1;
}
return pos;
}
Visa โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
BharatPe is hiring SDE
For 2020, 2021, 2022, 2023 grads
https://www.linkedin.com/posts/bharatpe_join-bharatpe-activity-7265335537765363712-EXs7
Expected CTC -> 30-50LPA
For 2020, 2021, 2022, 2023 grads
https://www.linkedin.com/posts/bharatpe_join-bharatpe-activity-7265335537765363712-EXs7
Expected CTC -> 30-50LPA
Linkedin
Join BharatPe | BharatPe
๐ Join the BharatPe Tech Team!
Weโre on the lookout for passionate Software Development Engineers to build cutting-edge fintech solutions. If innovation, growth, and impact excite you, this is your chance to make a difference!
๐ป Apply now and be part ofโฆ
Weโre on the lookout for passionate Software Development Engineers to build cutting-edge fintech solutions. If innovation, growth, and impact excite you, this is your chance to make a difference!
๐ป Apply now and be part ofโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Wipro is hiring Freshers!
Position: Associate
Salary: 3.5 - 5.7 LPA (Expected)
Experienc๏ปฟe: Freshers (0 - 2 Years)
Location: PAN India
๐ปApply Now: https://careers.wipro.com/careers-home/jobs?keywords=Associate&stretchUnits=MILES&stretch=10&location=India&lat=22&lng=79&woe=12
Position: Associate
Salary: 3.5 - 5.7 LPA (Expected)
Experienc๏ปฟe: Freshers (0 - 2 Years)
Location: PAN India
๐ปApply Now: https://careers.wipro.com/careers-home/jobs?keywords=Associate&stretchUnits=MILES&stretch=10&location=India&lat=22&lng=79&woe=12
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐CGI is Hiring
Role: Testing / QA
Experience: Freshers (0 - 1 Years)
๐ปApply Link:
https://cgi.njoyn.com/corp/xweb/xweb.asp?clid=21001&page=jobdetails&jobid=J0924-1690&BRID=1163211&SBDID=943
Role: Testing / QA
Experience: Freshers (0 - 1 Years)
๐ปApply Link:
https://cgi.njoyn.com/corp/xweb/xweb.asp?clid=21001&page=jobdetails&jobid=J0924-1690&BRID=1163211&SBDID=943
Njoyn
Careers
CGI offers more than a job. We offer limitless opportunities to make a difference for the clients and communities we serve. Explore CGIโyour next career.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Email: pradeep@intellisofttech.com
Hyderabad Candidates
Hyderabad Candidates
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Pinesphere on LinkedIn: #hiring #pythondeveloper #fresherjobs #bangalorejobs | 60 comments
Weโre Hiring Python Developer Freshers!
Role : Python Developer (Fresher)
Location: Bangalore
Eligibility: B.Tech/B.E graduates
Apply now or tag someone whoโฆ | 60 comments on LinkedIn
Role : Python Developer (Fresher)
Location: Bangalore
Eligibility: B.Tech/B.E graduates
Apply now or tag someone whoโฆ | 60 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Cosmocloud is hiring SDE Intern for 6 months
https://www.linkedin.com/posts/shreybatra_internships-interns-jobs-activity-7265955435243794432-tf6e
https://www.linkedin.com/posts/shreybatra_internships-interns-jobs-activity-7265955435243794432-tf6e
Linkedin
Shrey Batra on LinkedIn: #internships #interns #jobs #hiring #softwareengineering | 125 comments
Edit - We have closed the forms as we have recieved more than 2100 applications! Candidates will be reached out by email :)
๐จI am looking to hire 3 softwareโฆ | 125 comments on LinkedIn
๐จI am looking to hire 3 softwareโฆ | 125 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Cognizant hiring Engineer Trainee
0-1 year experience
4 LPA CTC
Apply Here : https://app.joinsuperset.com/join/#/signup/student/jobprofiles/b643e525-c83b-4505-9a10-a666be44f249
0-1 year experience
4 LPA CTC
Apply Here : https://app.joinsuperset.com/join/#/signup/student/jobprofiles/b643e525-c83b-4505-9a10-a666be44f249
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Barclays Hiring
Role: Technology Developer Graduate Program
Batch: 2025
๐ปApply Link: https://search.jobs.barclays/job/-/-/13015/73381614864
Role: Technology Developer Graduate Program
Batch: 2025
๐ปApply Link: https://search.jobs.barclays/job/-/-/13015/73381614864
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : PayU
Batch : 2025/2026 passouts
Role : Data Internship
Skillset required : Python and SQL
Link : https://jobs.eu.lever.co/payu/9da4be41-d780-4375-a55b-2543f81e3b51
Batch : 2025/2026 passouts
Role : Data Internship
Skillset required : Python and SQL
Link : https://jobs.eu.lever.co/payu/9da4be41-d780-4375-a55b-2543f81e3b51
jobs.eu.lever.co
PayU - Data Intern
A degree in Engineering, Statistics, Computer Science, Mathematics or other similar quantitative field from Tier one colleges Students in the pre-final year & final year of their Graduation/Post Graduation can apply for an internship 5/6th Semester for UGโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Urban Company
Role : Associate Product Manager
Batch : 2024/2023/2022 passouts
Job Description : https://docs.google.com/document/d/1ye8zupR_elfzncGV1IdbvU-0uFo_YT_8ZiS6K9y3Ua4/mobilebasic
Link : https://docs.google.com/forms/d/e/1FAIpQLSfYVyswE2B0Ll8pMU6Rio551fd9Q6ziybv9DfxBFi9XpEB8XQ/viewform?usp=send_form
Role : Associate Product Manager
Batch : 2024/2023/2022 passouts
Job Description : https://docs.google.com/document/d/1ye8zupR_elfzncGV1IdbvU-0uFo_YT_8ZiS6K9y3Ua4/mobilebasic
Link : https://docs.google.com/forms/d/e/1FAIpQLSfYVyswE2B0Ll8pMU6Rio551fd9Q6ziybv9DfxBFi9XpEB8XQ/viewform?usp=send_form
Google Docs
2025 JD | UC Product team
APM/ PM | Urban Company About UC Urban Company is Asia's largest home services platform, present across India, UAE, KSA and Singapore. We help customers in 60+ cities book reliable home services with our trained service professionals across beauty treatmentsโฆ