Minimum index
Python 3โ
Python 3โ
import sys
sys.setrecursionlimit(10**6)
DTCC HackTree โ
sys.setrecursionlimit(10**6)
def countVerticalPaths(costs, edge_nodes, from_lst, to_lst, k):
children = [[] for _ in range(edge_nodes)]
for u, v in zip(from_lst, to_lst):
u -= 1
v -= 1
children[u].append(v)
children[v].append(u)
prefixes = [0] * k
prefixes[0] = 1
def g(n, s, p, result):
curr = (s + costs[n]) % k
result[0] += prefixes[curr]
prefixes[curr] += 1
for c in children[n]:
if c != p:
g(c, curr, n, result)
prefixes[curr] -= 1
result = [0]
g(0, 0, -1, result)
return result[0]
DTCC HackTree โ
#include <vector>
using namespace std;
long long countSetBits(int number) {
long long bitMask = 1, setBitsCount = 0;
for (int bitPosition = 0; bitPosition < 32; bitPosition++) {
long long quotient = number / (bitMask << (bitPosition + 1));
long long remainder = number % (bitMask << (bitPosition + 1)) - (bitMask << bitPosition);
setBitsCount += quotient * (bitMask << bitPosition);
if (remainder > 0) setBitsCount += remainder;
if (1 & (number >> bitPosition)) setBitsCount++;
}
return setBitsCount;
}
int solve(int targetCount) {
if (targetCount == 0) return 1;
int low = 1, high = 1e9 + 1;
while (low < high) {
int mid = (low + high) / 2;
long long currentCount = countSetBits(mid);
if (currentCount >= targetCount + 1) {
high = mid;
} else {
low = mid + 1;
}
}
return low;
}
vector<int> getValueAtIndices(const vector<int>& queries) {
vector<int> results;
for (int query : queries) {
int result = solve(query);
results.push_back(result);
}
return results;
}
DTCC female pass credits โ
using namespace std;
long long countSetBits(int number) {
long long bitMask = 1, setBitsCount = 0;
for (int bitPosition = 0; bitPosition < 32; bitPosition++) {
long long quotient = number / (bitMask << (bitPosition + 1));
long long remainder = number % (bitMask << (bitPosition + 1)) - (bitMask << bitPosition);
setBitsCount += quotient * (bitMask << bitPosition);
if (remainder > 0) setBitsCount += remainder;
if (1 & (number >> bitPosition)) setBitsCount++;
}
return setBitsCount;
}
int solve(int targetCount) {
if (targetCount == 0) return 1;
int low = 1, high = 1e9 + 1;
while (low < high) {
int mid = (low + high) / 2;
long long currentCount = countSetBits(mid);
if (currentCount >= targetCount + 1) {
high = mid;
} else {
low = mid + 1;
}
}
return low;
}
vector<int> getValueAtIndices(const vector<int>& queries) {
vector<int> results;
for (int query : queries) {
int result = solve(query);
results.push_back(result);
}
return results;
}
DTCC female pass credits โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
MERN stack intern (backend focus: NodeJS) to join us for 3 months starting 15th July.
- prior experience building projects on NodeJS
- Work from office in Gurgaon
- Rs. 10K monthly stipend
If this is you, please reach out to me at garima@sploot.tech
- prior experience building projects on NodeJS
- Work from office in Gurgaon
- Rs. 10K monthly stipend
If this is you, please reach out to me at garima@sploot.tech
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Innovacer
Batch : 2023/2022 passouts
Role : Data Analyst
Skillset : majorly good at SQL
Link : https://boards.greenhouse.io/innovaccer/jobs/7269176002
Batch : 2023/2022 passouts
Role : Data Analyst
Skillset : majorly good at SQL
Link : https://boards.greenhouse.io/innovaccer/jobs/7269176002
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company: edtechcube
Location: N/A
Role: Frontend Developer
For Graduates: 2023, 2024
https://www.linkedin.com/posts/mohit-kumar-mahato-2b7423269_hiring-techjobs-frontenddeveloper-activity-7212328435078111232-5Y3J?utm_source=share&utm_medium=member_desktop
Location: N/A
Role: Frontend Developer
For Graduates: 2023, 2024
https://www.linkedin.com/posts/mohit-kumar-mahato-2b7423269_hiring-techjobs-frontenddeveloper-activity-7212328435078111232-5Y3J?utm_source=share&utm_medium=member_desktop
Linkedin
Mohit Kumar Mahato on LinkedIn: #hiring #techjobs #frontenddeveloper #backenddeveloper #mobileappdeveloperโฆ | 56 comments
We're hiring talented Frontend, Backend, and Mobile App Developers to shape the future with us. If you're passionate about innovation, eager to work onโฆ | 56 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Shobhit Gupta on LinkedIn: #hiring #backend #internship | 16 comments
Segwise.ai is looking to hire a backend engineering intern.
An ideal candidate will have to wear multiple hats. Would need to do backend, data pipelinesโฆ | 16 comments on LinkedIn
An ideal candidate will have to wear multiple hats. Would need to do backend, data pipelinesโฆ | 16 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Bottomline is hiring for Associate Software Engineer
Expected Salary: 7-12 LPA
Batch: 2023/2024
Apply here:
https://boards.greenhouse.io/bottomlinetechnologies/jobs/7498875002?gh_src=e1c2a8322us
Expected Salary: 7-12 LPA
Batch: 2023/2024
Apply here:
https://boards.greenhouse.io/bottomlinetechnologies/jobs/7498875002?gh_src=e1c2a8322us
job-boards.greenhouse.io
Bottomline
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Apply here for Full Stack Developer - Internship:
https://careers-page.com/sperax/job/L86963VV
https://careers-page.com/sperax/job/L86963VV
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
https://www.linkedin.com/posts/arnabdebnath07_were-hiring-product-designers-looking-activity-7212325301295439872-X4sH?utm_source=share&utm_medium=member_android
Apply Link Form :
https://docs.google.com/forms/d/e/1FAIpQLSfLSvtnw8PbVoCfRKKWd_0_qIT6EK5GlIFApS04aKE9TjvzFQ/viewform
Apply Link Form :
https://docs.google.com/forms/d/e/1FAIpQLSfLSvtnw8PbVoCfRKKWd_0_qIT6EK5GlIFApS04aKE9TjvzFQ/viewform
Linkedin
Arnab Debnath on LinkedIn: We're Hiring Product Designers! ๐
Looking for full-time and internโฆ | 100 comments
Looking for full-time and internโฆ | 100 comments
We're Hiring Product Designers! ๐
Looking for full-time and intern roles! If you excel in design, with deep thinking and a passion for functionality andโฆ | 100 comments on LinkedIn
Looking for full-time and intern roles! If you excel in design, with deep thinking and a passion for functionality andโฆ | 100 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Hiring for SDET - Intern & Full time At Cashfree Payments
Batch: 2023, 2024, 2025, 2026
https://docs.google.com/forms/d/e/1FAIpQLSetl8ZhAgiPQBYz-fChjTZHcm_DyKJcLisqvu7VAA9Ba8sZYQ/viewform
Batch: 2023, 2024, 2025, 2026
https://docs.google.com/forms/d/e/1FAIpQLSetl8ZhAgiPQBYz-fChjTZHcm_DyKJcLisqvu7VAA9Ba8sZYQ/viewform
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
M.tech 2024 passout freshers opening at western digital
Qualifications
M.Tech in Electronics/Embedded Systems/Computer Science (2024 Passouts Only)
Apply at :https://smrtr.io/m5GpC
Qualifications
M.Tech in Electronics/Embedded Systems/Computer Science (2024 Passouts Only)
Apply at :https://smrtr.io/m5GpC
Western Digital
Western Digital is looking for a Senior Engineer, System design Verification Engineering (M Tech -2024 Passouts) in Bengaluru,โฆ
As a Firmware Verification Engineer in Client Solid State Drives (CSSD) group at Western Digital, you will develop test cases and infrastructure to validate and verify firmware for Solid State Dri...
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
BlackBerry hiring Interns for multiple roles in Bengaluru.
๐ Interested students (especially 2023 & 2024 graduates) please apply through this link ๐ https://lnkd.in/g2gk59Wm
- Paid internship
- Duration: 6-9 months
- Roles:
*Cloud backend engineer
*Associate cloud engineer
*Software development engineer in Test (SDET)
๐ Interested students (especially 2023 & 2024 graduates) please apply through this link ๐ https://lnkd.in/g2gk59Wm
- Paid internship
- Duration: 6-9 months
- Roles:
*Cloud backend engineer
*Associate cloud engineer
*Software development engineer in Test (SDET)
lnkd.in
LinkedIn
This link will take you to a page thatโs not on LinkedIn
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
using namespace std;
struct T {
int v;
T* l;
T* r;
T(int val) : v(val), l(nullptr), r(nullptr) {}
};
class B {
public:
T* r;
B() : r(nullptr) {}
void i(int val) {
r = iR(r, val);
}
T* iR(T* r, int val) {
if (r == nullptr) {
r = new T(val);
return r;
}
if (val < r->v) {
r->l = iR(r->l, val);
} else if (val > r->v) {
r->r = iR(r->r, val);
}
return r;
}
};
class BM {
public:
T* m(T* n) {
if (n == nullptr) {
return n;
}
T* l = m(n->l);
T* ri = m(n->r);
n->l = ri;
n->r = l;
return n;
}
};
class BT {
public:
void p(T* n) {
if (n == nullptr) {
return;
}
cout << n->v << " ";
p(n->l);
p(n->r);
}
};
int main() {
int n;
cin >> n;
vector<int> v(n);
for (int i = 0; i < n; ++i) {
cin >> v[i];
}
B t;
for (int val : v) {
t.i(val);
}
BM m;
T* mr = m.m(t.r);
BT tr;
tr.p(mr);
return 0;
}
// mirror tree c++
#include <vector>
using namespace std;
struct T {
int v;
T* l;
T* r;
T(int val) : v(val), l(nullptr), r(nullptr) {}
};
class B {
public:
T* r;
B() : r(nullptr) {}
void i(int val) {
r = iR(r, val);
}
T* iR(T* r, int val) {
if (r == nullptr) {
r = new T(val);
return r;
}
if (val < r->v) {
r->l = iR(r->l, val);
} else if (val > r->v) {
r->r = iR(r->r, val);
}
return r;
}
};
class BM {
public:
T* m(T* n) {
if (n == nullptr) {
return n;
}
T* l = m(n->l);
T* ri = m(n->r);
n->l = ri;
n->r = l;
return n;
}
};
class BT {
public:
void p(T* n) {
if (n == nullptr) {
return;
}
cout << n->v << " ";
p(n->l);
p(n->r);
}
};
int main() {
int n;
cin >> n;
vector<int> v(n);
for (int i = 0; i < n; ++i) {
cin >> v[i];
}
B t;
for (int val : v) {
t.i(val);
}
BM m;
T* mr = m.m(t.r);
BT tr;
tr.p(mr);
return 0;
}
// mirror tree c++