๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<int> solve(int N, vector<ll>& A, vector<pair<int, int>>& edges, int Q, vector<pair<ll, int>>& queries) {
vector<vector<int>> adj(N + 1);
for (auto& edge : edges) {
int u = edge.first, v = edge.second;
adj[u].push_back(v);
adj[v].push_back(u);
}
auto toBinary = [](ll value) {
string binary = bitset<62>(value).to_string();
return binary;
};
vector<string> binaryValues(N + 1);
for (int i = 1; i <= N; ++i) {
binaryValues[i] = toBinary(A[i-1]);
}
vector<vector<int>> ancestors(N + 1);
vector<int> parent(N + 1, -1);
function<void(int, int)> dfs = [&](int node, int par) {
parent[node] = par;
if (par != -1) {
ancestors[node] = ancestors[par];
ancestors[node].push_back(par);
}
for (int neighbor : adj[node]) {
if (neighbor == par) continue;
dfs(neighbor, node);
}
};
dfs(1, -1);
auto longestCommonPrefix = [](const string& a, const string& b) {
int len = 0;
while (len < a.size() && a[len] == b[len]) {
++len;
}
return len;
};
vector<int> ans;
for (auto& query : queries) {
ll V = query.first;
int X = query.second;
string V_binary = toBinary(V);
int maxLength = 0;
for (int ancestor : ancestors[X]) {
int lcp = longestCommonPrefix(V_binary, binaryValues[ancestor]);
maxLength = max(maxLength, lcp);
}
int lcp = longestCommonPrefix(V_binary, binaryValues[X]);
maxLength = max(maxLength, lcp);
ans.push_back(maxLength);
}
return ans;
}
int main() {
ios_base::sync_with_stdio(0);
cin.tie(nullptr);
cout.tie(nullptr);
int T;
cin >> T;
while (T--) {
int N;
cin >> N;
vector<ll> A(N);
for (int i = 0; i < N; ++i) {
cin >> A[i];
}
vector<pair<int, int>> edges(N - 1);
for (int i = 0; i < N - 1; ++i) {
int u, v;
cin >> u >> v;
edges[i] = {u, v};
}
int Q;
cin >> Q;
vector<pair<ll, int>> queries(Q);
for (int i = 0; i < Q; ++i) {
cin >> queries[i].first >> queries[i].second;
}
vector<int> results = solve(N, A, edges, Q, queries);
for (int result : results) {
cout << result << " ";
}
cout << endl;
}
return 0;
}
Prefix queries โ
Sprinklr
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll solve(vector<ll>&a,ll k)
{
ll n=a.size();
ll s=0,st=0,en=0,maxsofar=0,maxend=0;
for(ll i=0;i<n;i++)
{
maxend+=a[i];
if(maxsofar<maxend)
{
maxsofar=maxend;
st=s;
en=i;
}
if(maxend<0)
{
maxend=0;
s=i+1;
}
}
return maxsofar+k*(en-st);
}
signed main()
{
ll n,k; cin>>n>>k;
vector<ll>a(n);
for(ll i=0;i<n;i++) cin>>a[i];
cout<<solve(a,k);
return 0;
}
maximum quirkness
Sprinklr โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
int T;
cin >> T;
while (T--) {
ll n, m, k;
cin >> n >> m >> k;
vector<vector<long long>> v(n, vector<long long>(m));
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
cin >> v[i][j];
}
}
vector<pair<long long, long long>> a;
for (int i = 0; i < n; i++) {
long long x = 0;
long long count = 0;
for (int j = 0; j < m; j++) {
if (v[i][j]) {
x |= (1LL << j);
} else {
count++;
}
}
a.push_back({x, count});
}
long long ans = 0;
for (int i = 0; i < n; i++) {
long long curr = 0;
for (int j = 0; j < n; j++) {
if (a[i].first == a[j].first) {
curr++;
}
}
if (a[i].second > k) {
continue;
}
if ((k - a[i].second) % 2 == 1) {
continue;
}
ans = max(ans, curr);
}
cout << ans << endl;
}
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Adobe
Role: SDE 1
Experience: 0-1 years (2023 and 2024 grads)
Apply: https://careers.adobe.com/us/en/job/ADOBUSR147155EXTERNALENUS/Software-Development-Engineer-1-Java-SpringBoot
Role: SDE 1
Experience: 0-1 years (2023 and 2024 grads)
Apply: https://careers.adobe.com/us/en/job/ADOBUSR147155EXTERNALENUS/Software-Development-Engineer-1-Java-SpringBoot
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Yugabyte
Role: Software Engineer Intern
Batch eligible: 2025 grads only
Apply: https://job-boards.greenhouse.io/yugabyte/jobs/4389419006?gh_src=ce944bbf6us
Role: Software Engineer Intern
Batch eligible: 2025 grads only
Apply: https://job-boards.greenhouse.io/yugabyte/jobs/4389419006?gh_src=ce944bbf6us
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Razorpay
Roles : Analytics Specialist
Skillset : Python and SQL
For 2023, 2022, 2021
https://docs.google.com/forms/d/e/1FAIpQLSfURE9kIPyUB6BD-K0pT6KbqPy2xJXnLEYonHvn7l7ZbTZfFA/viewform
Roles : Analytics Specialist
Skillset : Python and SQL
For 2023, 2022, 2021
https://docs.google.com/forms/d/e/1FAIpQLSfURE9kIPyUB6BD-K0pT6KbqPy2xJXnLEYonHvn7l7ZbTZfFA/viewform
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
McAfee is hiring SDET
For 2021 grads
Location: Remote
https://careers.mcafee.com/global/en/job/MCAFGLOBALJR0031208ENGLOBALEXTERNAL/SDET-Remote?s=08
For 2021 grads
Location: Remote
https://careers.mcafee.com/global/en/job/MCAFGLOBALJR0031208ENGLOBALEXTERNAL/SDET-Remote?s=08
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
ByteRaven is hiring for SDE - 1 (Entry Level)
Apply here:
https://linkedin.com/jobs/view/3986850819/?alternateChannel=search
Apply here:
https://linkedin.com/jobs/view/3986850819/?alternateChannel=search
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Xempla - Decision Support System for Enterprise Asset Management hiring Software Engineer in Greater Kolkata Area | LinkedIn
Posted 9:52:19 AM. Position: Software Development Engineer - I, Back-endLocation:Kolkata(In-office)Type:Full-TimeCTC-โฆSee this and similar jobs on LinkedIn.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Hiring for the position of Technical Support Engineer:
Experience: 0 to 2years
Location: Bangalore
Notice Period: Immediate
Mandatory skills required:
ยท Should have attended regular school/college with 10+2+3 as a minimum qualification in any stream of subject.
ยท Good understanding of computer systems, mobile devices, and other tech products.
. Excellent Communication
Job Description: Technical Support Engineer
Roles:
Provides level 1 technical support to end users on computer-related technical problems to assigned accounts/ customers through voice support.
Essential Job Functions:
ยท Taking ownership of customer issues reported and responding to customer inquiries to ensure customer needs are met.
ยทAssists customers in resolving technical problems by providing guidance regarding software/hardware/application issues etc.
ยทResearching, diagnosing, troubleshooting, and identifying solutions to resolve system issues and/or refer more complex technical problems through a defined escalation process.
ยทIdentifies, evaluates, and prioritizes customer problems and complaints to ensure that inquiries are resolved appropriately.
Basic Qualifications
ยทAbility to diagnose and troubleshoot basic technical issues.
ยท Fresher or has work experience as a Technical Support Engineer, Desktop Support Engineer, IT Help Desk Technician, or similar role.
ยท Ability to provide step-by-step technical help, both written and verbal.
ยทExperience with solving computer-related problems.
ยทExperience working with company escalation policy.
Requirements and Skills
ยทInterpersonal skills to interact with customers and team members.
ยทExcellent problem-solving and communication skills with fluent spoken English and good thought flow.
ยทOrganization skills to balance and prioritize work.
ยทAbility to work in a team environment.
Please drop the CV on ramya.cr@dxc.com
Experience: 0 to 2years
Location: Bangalore
Notice Period: Immediate
Mandatory skills required:
ยท Should have attended regular school/college with 10+2+3 as a minimum qualification in any stream of subject.
ยท Good understanding of computer systems, mobile devices, and other tech products.
. Excellent Communication
Job Description: Technical Support Engineer
Roles:
Provides level 1 technical support to end users on computer-related technical problems to assigned accounts/ customers through voice support.
Essential Job Functions:
ยท Taking ownership of customer issues reported and responding to customer inquiries to ensure customer needs are met.
ยทAssists customers in resolving technical problems by providing guidance regarding software/hardware/application issues etc.
ยทResearching, diagnosing, troubleshooting, and identifying solutions to resolve system issues and/or refer more complex technical problems through a defined escalation process.
ยทIdentifies, evaluates, and prioritizes customer problems and complaints to ensure that inquiries are resolved appropriately.
Basic Qualifications
ยทAbility to diagnose and troubleshoot basic technical issues.
ยท Fresher or has work experience as a Technical Support Engineer, Desktop Support Engineer, IT Help Desk Technician, or similar role.
ยท Ability to provide step-by-step technical help, both written and verbal.
ยทExperience with solving computer-related problems.
ยทExperience working with company escalation policy.
Requirements and Skills
ยทInterpersonal skills to interact with customers and team members.
ยทExcellent problem-solving and communication skills with fluent spoken English and good thought flow.
ยทOrganization skills to balance and prioritize work.
ยทAbility to work in a team environment.
Please drop the CV on ramya.cr@dxc.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Stable Money
Role : SDE Intern ( Frontend and Backend) - 6M
Batch : 2024/2025 passouts
Link : https://docs.google.com/forms/d/e/1FAIpQLSeEq0y09dG2oRZOgUPrbvM-iqaU9c6NTN_Myv-uUmc_RUwSkQ/viewform
Role : SDE Intern ( Frontend and Backend) - 6M
Batch : 2024/2025 passouts
Link : https://docs.google.com/forms/d/e/1FAIpQLSeEq0y09dG2oRZOgUPrbvM-iqaU9c6NTN_Myv-uUmc_RUwSkQ/viewform
โค6๐2
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Please try to react on the post in case you are applying, it will hardly take your 10 secs but enough to motivate me to share more and more opportunities everyday without fail:)
Just one favour if you canโค๏ธ
Just one favour if you canโค๏ธ
โค5๐3
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Curefit
Role: Test Engineer (QA)
Batch eligible: Only 2024 grads
Apply: https://www.linkedin.com/jobs/view/3986862709
Role: Test Engineer (QA)
Batch eligible: Only 2024 grads
Apply: https://www.linkedin.com/jobs/view/3986862709
๐4
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company name: The Trade Desk
Role: Software Engineering Intern (2025 Summer Internship)
Batch: 2026 passouts
Internship Duration: 12 weeks
Location: Bangalore
Apply Link: https://boards.greenhouse.io/thetradedesk/jobs/4435073007?gh_src=1c01b2067us
Do share with your Juniors too
Role: Software Engineering Intern (2025 Summer Internship)
Batch: 2026 passouts
Internship Duration: 12 weeks
Location: Bangalore
Apply Link: https://boards.greenhouse.io/thetradedesk/jobs/4435073007?gh_src=1c01b2067us
Do share with your Juniors too