๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
using namespace std;
const int MOD = 1e9 + 7;
int countValidSeries(int n, int m, vector<int>& f) {
vector<vector<int>> dp(n + 1, vector<int>(m + 1, 0));
if (f[0] == 0) {
for (int j = 1; j <= m; ++j) {
dp[1][j] = 1;
}
} else {
dp[1][f[0]] = 1;
}
for (int i = 2; i <= n; ++i) {
if (f[i-1] == 0) {
for (int j = 1; j <= m; ++j) {
dp[i][j] = dp[i-1][j];
if (j > 1) dp[i][j] = (dp[i][j] + dp[i-1][j-1]) % MOD;
if (j < m) dp[i][j] = (dp[i][j] + dp[i-1][j+1]) % MOD;
}
} else {
int j = f[i-1];
dp[i][j] = dp[i-1][j];
if (j > 1) dp[i][j] = (dp[i][j] + dp[i-1][j-1]) % MOD;
if (j < m) dp[i][j] = (dp[i][j] + dp[i-1][j+1]) % MOD;
}
}
int result = 0;
for (int j = 1; j <= m; ++j) {
result = (result + dp[n][j]) % MOD;
}
return result;
}
Flight Series Counter โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Smallcase is hiring for Frontend Developer
6 months internship opportunity
2025 batch eligible
https://smallcase.freshteam.com/jobs/fvvVYk18XC4B/internship-program-2024
6 months internship opportunity
2025 batch eligible
https://smallcase.freshteam.com/jobs/fvvVYk18XC4B/internship-program-2024
Freshteam
Hiring for Internship Program 2024 for Bengaluru - Internship
Posted by : smallcase | CSS,HTML,JAVASCRIPT,REACTJS,REDUX,NEXT.JS
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
UST is hiring for Developer I - Software Engineer (0-2 years)
Expected Salary: 5-10 LPA
Apply here:
https://usource.ripplehire.com/candidate/?token=8YxWjpwDhdL62DFYUIcQ&lang=en&source=USTLINKEDIN#detail/job/21822
Expected Salary: 5-10 LPA
Apply here:
https://usource.ripplehire.com/candidate/?token=8YxWjpwDhdL62DFYUIcQ&lang=en&source=USTLINKEDIN#detail/job/21822
Ripplehire
UST Careers | Latest jobs at UST - Ripplehire.com
Apply Now! This is a wonderful opportunity. Help your friends by sharing this role with them.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Sunstone is hiring for Software Engineer
Expected Salary: 6-14 LPA
Apply here:
https://linkedin.com/jobs/view/3984072465/
Expected Salary: 6-14 LPA
Apply here:
https://linkedin.com/jobs/view/3984072465/
Linkedin
Sunstone hiring Software Engineer in Gurugram, Haryana, India | LinkedIn
Posted 7:46:31 AM. We are seeking a motivated and enthusiastic Junior Flutter Developer to join our mobile developmentโฆSee this and similar jobs on LinkedIn.
SELECT DISTINCT s.room
FROM section s
JOIN schedule sc ON s.schedule_id = sc.schedule_id
WHERE sc.day = 'Monday'
AND sc.starttime = '09:00:00'
AND sc.endtime = '11:00:00';
ZSโ
๐2
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Baker Hughes
๐ Job Title: Summer Internship
โ๐ป YOE: 2025 and 2026 grads
โก๏ธ Apply: https://careers.bakerhughes.com/global/en/job/R124156/Summer-Internships-2025-India
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐ Job Title: Summer Internship
โ๐ป YOE: 2025 and 2026 grads
โก๏ธ Apply: https://careers.bakerhughes.com/global/en/job/R124156/Summer-Internships-2025-India
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Genpact is Hiring !
Skill Set - Agility Intake /Claims
Experience - 0-2 years
Location - GGN
Shift- US shift
Qualification - Any except technical
GOOD COMMUNICATION REQUIRED.
Note- Interested candidate can Fill the below form and share their CV at khushboo.jeevtani@genpact.com with the subject line "Application for Insurance.
FORM LINK - https://forms.office.com/pages/responsepage.aspx?id=IIrvvayqgE-zoNmjL5n9M9LTx8HzSktPnzX0f19d6URUMEM5UFdNSENCMkpXVkdSSDZFVUhTUVEyUS4u
Skill Set - Agility Intake /Claims
Experience - 0-2 years
Location - GGN
Shift- US shift
Qualification - Any except technical
GOOD COMMUNICATION REQUIRED.
Note- Interested candidate can Fill the below form and share their CV at khushboo.jeevtani@genpact.com with the subject line "Application for Insurance.
FORM LINK - https://forms.office.com/pages/responsepage.aspx?id=IIrvvayqgE-zoNmjL5n9M9LTx8HzSktPnzX0f19d6URUMEM5UFdNSENCMkpXVkdSSDZFVUhTUVEyUS4u
Office
Please fill out this form
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
L&T Technology Services - MBA Intern Hiring โ 2024 or 2025 pass out batch.
Please register using the below link: https://forms.office.com/pages/responsepage.aspx?id=eDMbMYqOXkujP-gKPYumClSsrm1sEv1BmOXg5_0vsfxUOUY2WUU1MUpRWlBROUtMSFFaSDRSOFZHRi4u
** Please note that applicants that do not fill the above form will not be considered.
Registration End Date: 6:00PM, 31st July 2024
Type: Full time Offline Internship
Location: Mysore
Specialization: B. Tech + Mba in Sales & Marketing
Year of Pass out: Batch of 2024 or 2025
Stipend: As per Industry Standards
Job Brief:
- A Presales Intern acts as a bridge between the sales and technical teams, providing valuable insights and solutions to potential clients.
- This role involves a strategic approach to understanding client needs and aligning product or service offerings accordingly.
Requirement and Skills:
- Excellent communication and presentation skills.
- Strong analytical and problem-solving abilities.
- Ability to work collaboratively in a fast-paced and dynamic environment.
Please register using the below link: https://forms.office.com/pages/responsepage.aspx?id=eDMbMYqOXkujP-gKPYumClSsrm1sEv1BmOXg5_0vsfxUOUY2WUU1MUpRWlBROUtMSFFaSDRSOFZHRi4u
** Please note that applicants that do not fill the above form will not be considered.
Registration End Date: 6:00PM, 31st July 2024
Type: Full time Offline Internship
Location: Mysore
Specialization: B. Tech + Mba in Sales & Marketing
Year of Pass out: Batch of 2024 or 2025
Stipend: As per Industry Standards
Job Brief:
- A Presales Intern acts as a bridge between the sales and technical teams, providing valuable insights and solutions to potential clients.
- This role involves a strategic approach to understanding client needs and aligning product or service offerings accordingly.
Requirement and Skills:
- Excellent communication and presentation skills.
- Strong analytical and problem-solving abilities.
- Ability to work collaboratively in a fast-paced and dynamic environment.
๐ฑ1
#include <iostream>
#include <vector>
using namespace std;
// Function to find the bitwise OR of sums of all sub-sequences
int bitwiseOrOfSums(const vector<int>& arr) {
int result = 0;
for (int num : arr) {
result |= num;
}
return result;
}
int main() {
int T;
cin >> T;
while (T--) {
int N;
cin >> N;
vector<int> arr(N);
for (int i = 0; i < N; ++i) {
cin >> arr[i];
}
cout << bitwiseOrOfSums(arr) << endl;
}
return 0;
}
Unify โ
#include <iostream>
#include <vector>
using namespace std;
int main() {
int N, Q;
cin >> N >> Q;
vector<int> A(N);
for (int i = 0; i < N; ++i) {
cin >> A[i];
}
vector<int> results(Q);
for (int q = 0; q < Q; ++q) {
int L, R, X;
cin >> L >> R >> X;
--L;
--R;
long long sumXor = 0;
for (int i = L; i <= R; ++i) {
sumXor += (A[i] ^ X);
}
results[q] = sumXor;
}
for (const auto& res : results) {
cout << res << endl;
}
return 0;
}
The XOR Operation โ
Unify
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int maxReward(const vector<int>& reward_1, const vector<int>& reward_2, int k) {
int n = reward_1.size();
vector<pair<int, int>> diffs(n);
for (int i = 0; i < n; ++i) {
diffs[i] = {reward_1[i] - reward_2[i], i};
}
sort(diffs.rbegin(), diffs.rend());
int aa = 0;
for (int i = 0; i < k; ++i) {
aa += reward_1[diffs[i].second];
}
for (int i = k; i < n; ++i) {
aa += reward_2[diffs[i].second];
}
return aa;
}
Atlassian โ
๐2
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
#include <queue>
#include <unordered_map>
#include <climits>
using namespace std;
int solve(int center_nodes, int center_edges, vector<int>& center_from, vector<int>& center_to, vector<int>& status) {
vector<vector<int>> graph(center_nodes);
for (int i = 0; i < center_edges; ++i) {
int u = center_from[i] - 1;
int v = center_to[i] - 1;
graph[u].push_back(v);
graph[v].push_back(u);
}
queue<pair<int, int>> q;
vector<int> min_time(center_nodes, INT_MAX);
for (int i = 0; i < center_nodes; ++i) {
if (status[i] == 3) {
q.push({i, 0});
min_time[i] = 0;
}
}
while (!q.empty()) {
int node = q.front().first;
int time = q.front().second;
q.pop();
for (int neighbor : graph[node]) {
if (min_time[neighbor] > time + 1) {
min_time[neighbor] = time + 1;
q.push({neighbor, time + 1});
}
}
}
int max_time = 0;
for (int i = 0; i < center_nodes; ++i) {
if (status[i] == 1) {
if (min_time[i] == INT_MAX) {
return -1;
}
max_time = max(max_time, min_time[i]);
}
}
return max_time;
}
Atlassian โ