#include <bits/stdc++.h>
using namespace std;
#define INF INT_MAX
int minimumStressLevel(int N, vector<vector<int>>& abw, int X, int Y) {
vector<vector<pair<int, int>>> graph(N + 1);
for (auto& road : abw) {
int a = road[0], b = road[1], w = road[2];
graph[a].push_back({b, w});
graph[b].push_back({a, w});
}
priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
vector<int> dist(N + 1, INF);
pq.push({0, X});
dist[X] = 0;
while (!pq.empty()) {
int u = pq.top().second;
int stress = pq.top().first;
pq.pop();
if (u == Y) return stress;
for (auto& neighbor : graph[u]) {
int v = neighbor.first;
int w = neighbor.second;
int new_stress = max(stress, w);
if (new_stress < dist[v]) {
dist[v] = new_stress;
pq.push({new_stress, v});
}
}
}
return -1;
}
using namespace std;
#define INF INT_MAX
int minimumStressLevel(int N, vector<vector<int>>& abw, int X, int Y) {
vector<vector<pair<int, int>>> graph(N + 1);
for (auto& road : abw) {
int a = road[0], b = road[1], w = road[2];
graph[a].push_back({b, w});
graph[b].push_back({a, w});
}
priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
vector<int> dist(N + 1, INF);
pq.push({0, X});
dist[X] = 0;
while (!pq.empty()) {
int u = pq.top().second;
int stress = pq.top().first;
pq.pop();
if (u == Y) return stress;
for (auto& neighbor : graph[u]) {
int v = neighbor.first;
int w = neighbor.second;
int new_stress = max(stress, w);
if (new_stress < dist[v]) {
dist[v] = new_stress;
pq.push({new_stress, v});
}
}
}
return -1;
}
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
void dfs(int node, int parent, const vector<vector<int>>& adj, const vector<bool>& hasFruit, vector<bool>& visited, int& time) {
visited[node] = true;
for (int neighbor : adj[node]) {
if (neighbor == parent || visited[neighbor]) continue;
dfs(neighbor, node, adj, hasFruit, visited, time);
if (hasFruit[neighbor]) {
time += 2;
}
}
}
int minTime(int n, vector<vector<int>>& edges, vector<bool>& hasFruit) {
vector<vector<int>> adj(n);
for (const auto& edge : edges) {
adj[edge[0]].push_back(edge[1]);
adj[edge[1]].push_back(edge[0]);
}
int time = 0;
vector<bool> visited(n, false);
dfs(0, -1, adj, hasFruit, visited, time);
return time;
}
Magical Forest โ
#include <vector>
#include <algorithm>
using namespace std;
void dfs(int node, int parent, const vector<vector<int>>& adj, const vector<bool>& hasFruit, vector<bool>& visited, int& time) {
visited[node] = true;
for (int neighbor : adj[node]) {
if (neighbor == parent || visited[neighbor]) continue;
dfs(neighbor, node, adj, hasFruit, visited, time);
if (hasFruit[neighbor]) {
time += 2;
}
}
}
int minTime(int n, vector<vector<int>>& edges, vector<bool>& hasFruit) {
vector<vector<int>> adj(n);
for (const auto& edge : edges) {
adj[edge[0]].push_back(edge[1]);
adj[edge[1]].push_back(edge[0]);
}
int time = 0;
vector<bool> visited(n, false);
dfs(0, -1, adj, hasFruit, visited, time);
return time;
}
Magical Forest โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
def min_window(s: str, t: str) -> str:
from collections import Counter
target_count = Counter(t)
required_count = len(target_count)
formed = 0
window_counts = {}
min_window_length = float('inf')
min_window_start = 0
left, right = 0, 0
while right < len(s):
char = s[right]
window_counts[char] = window_counts.get(char, 0) + 1
if char in target_count and window_counts[char] == target_count[char]:
formed += 1
while left <= right and formed == required_count:
if right - left + 1 < min_window_length:
min_window_length = right - left + 1
min_window_start = left
char = s[left]
window_counts[char] -= 1
if char in target_count and window_counts[char] < target_count[char]:
formed -= 1
left += 1
right += 1
return s[min_window_start:min_window_start + min_window_length] if min_window_length != float('inf') else "N/A"
from collections import Counter
target_count = Counter(t)
required_count = len(target_count)
formed = 0
window_counts = {}
min_window_length = float('inf')
min_window_start = 0
left, right = 0, 0
while right < len(s):
char = s[right]
window_counts[char] = window_counts.get(char, 0) + 1
if char in target_count and window_counts[char] == target_count[char]:
formed += 1
while left <= right and formed == required_count:
if right - left + 1 < min_window_length:
min_window_length = right - left + 1
min_window_start = left
char = s[left]
window_counts[char] -= 1
if char in target_count and window_counts[char] < target_count[char]:
formed -= 1
left += 1
right += 1
return s[min_window_start:min_window_start + min_window_length] if min_window_length != float('inf') else "N/A"
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
#include <iostream> #include <vector> #include <algorithm> using namespace std; void dfs(int node, int parent, const vector<vector<int>>& adj, const vector<bool>& hasFruit, vector<bool>& visited, int& time) { visited[node] = true; for (int neighborโฆ
import java.util.*;
public class Solution{
static class TreeNode {
int id;
boolean hasFruit;
List<TreeNode> children;
TreeNode(int id, boolean hasFruit) {
this.id = id;
this.hasFruit = hasFruit;
this.children = new ArrayList<>();
}
}
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int m = scanner.nextInt();
int columns = scanner.nextInt(); used.
TreeNode[] nodes = new TreeNode[n];
for (int i = 0; i < n; i++) {
nodes[i] = new TreeNode(i, false);
}
for (int i = 0; i < m; i++) {
int u = scanner.nextInt();
int v = scanner.nextInt();
nodes[u].children.add(nodes[v]);
nodes[v].children.add(nodes[u]);
}
int treeCount = scanner.nextInt();
boolean[] hasFruit = new boolean[treeCount];
for (int i = 0; i < treeCount; i++) {
hasFruit[i] = scanner.nextInt() == 1;
}
for (int i = 0; i < treeCount; i++) {
nodes[i].hasFruit = hasFruit[i];
}
boolean[] visited = new boolean[n];
Result result = new Result();
dfs(nodes[0], visited, result);
System.out.println(result.time);
}
static class Result {
int time = 0;
}
private static boolean dfs(TreeNode node, boolean[] visited, Result result) {
visited[node.id] = true;
boolean foundFruit = node.hasFruit;
for (TreeNode child : node.children) {
if (!visited[child.id]) {
if (dfs(child, visited, result)) {
result.time += 2; back
foundFruit = true;
}
}
}
return foundFruit;
}
}
Magical Forest โ
public class Solution{
static class TreeNode {
int id;
boolean hasFruit;
List<TreeNode> children;
TreeNode(int id, boolean hasFruit) {
this.id = id;
this.hasFruit = hasFruit;
this.children = new ArrayList<>();
}
}
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int m = scanner.nextInt();
int columns = scanner.nextInt(); used.
TreeNode[] nodes = new TreeNode[n];
for (int i = 0; i < n; i++) {
nodes[i] = new TreeNode(i, false);
}
for (int i = 0; i < m; i++) {
int u = scanner.nextInt();
int v = scanner.nextInt();
nodes[u].children.add(nodes[v]);
nodes[v].children.add(nodes[u]);
}
int treeCount = scanner.nextInt();
boolean[] hasFruit = new boolean[treeCount];
for (int i = 0; i < treeCount; i++) {
hasFruit[i] = scanner.nextInt() == 1;
}
for (int i = 0; i < treeCount; i++) {
nodes[i].hasFruit = hasFruit[i];
}
boolean[] visited = new boolean[n];
Result result = new Result();
dfs(nodes[0], visited, result);
System.out.println(result.time);
}
static class Result {
int time = 0;
}
private static boolean dfs(TreeNode node, boolean[] visited, Result result) {
visited[node.id] = true;
boolean foundFruit = node.hasFruit;
for (TreeNode child : node.children) {
if (!visited[child.id]) {
if (dfs(child, visited, result)) {
result.time += 2; back
foundFruit = true;
}
}
}
return foundFruit;
}
}
Magical Forest โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Tata Steel
Batch : 2026 passouts females
Branches : CS, IT , ECE and core branches aswell.
Scholarship worth 2,00,000 INR + Internship and PPO at Tata Steel.
Link : https://bit.ly/TataSteelWOM
Batch : 2026 passouts females
Branches : CS, IT , ECE and core branches aswell.
Scholarship worth 2,00,000 INR + Internship and PPO at Tata Steel.
Link : https://bit.ly/TataSteelWOM
Mettl
Women of Mettle_2024 on Mercer-Mettl Xathon
Seeking bright young minds that can rise to a technical challenge, Women Of Mettle gives students the opportunity to experience real life technical challenges in the steel industry and gain access to Tata Steel's senior management who act as tutors and mentors.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Indeed is hiring Data Scientist
For 2023, 2022, 2021 grads
CTC - 32LPA - 48LPA
https://www.linkedin.com/posts/nightfury13_data-scientist-matching-science-remote-activity-7204024288067145730-qFq3
For 2023, 2022, 2021 grads
CTC - 32LPA - 48LPA
https://www.linkedin.com/posts/nightfury13_data-scientist-matching-science-remote-activity-7204024288067145730-qFq3
Linkedin
Mohit Jain on LinkedIn: Data Scientist - Matching Science - Remote, Telangana - Indeed.com | 14 comments
We're #Hiring for our India Team!
If you're a #DataScientist itching to work on a large-scale recommendation system, scoring 10s of billions of matchingโฆ | 14 comments on LinkedIn
If you're a #DataScientist itching to work on a large-scale recommendation system, scoring 10s of billions of matchingโฆ | 14 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Ripen Labs is hiring Frontend Devs (Full Time and Part Time)
https://www.linkedin.com/posts/ritvik-varghese-7b636617a_hi-ripen-labs-is-hiring-part-timefull-time-activity-7204053220371951616-CbND
https://www.linkedin.com/posts/ritvik-varghese-7b636617a_hi-ripen-labs-is-hiring-part-timefull-time-activity-7204053220371951616-CbND
Linkedin
ritvik varghese on LinkedIn: Hi, Ripen Labs is hiring part-time/full-time frontend developerโฆ | 26 comments
Hi, Ripen Labs is hiring part-time/full-time frontend developer (Typescript, React JS)
Offering a referral of Rs. 20,000 if you can help us find a good oneโฆ | 26 comments on LinkedIn
Offering a referral of Rs. 20,000 if you can help us find a good oneโฆ | 26 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Exciting Internship Opportunity: Frontend SDE Intern
Role: Frontend SDE Intern
Company: Blendnet.ai
Stipend: โน25,000 per month
Perks: Pre-Placement Offer (PPO)
Responsibilities: Develop user-facing features, engage in responsive design, collaborate with UX/UI designers, optimize application performance, and maintain documentation.
Apply Now ๐: https://www.foundit.in/zuno/app/job/frontend-sde-intern/description?utm_source=campus-ambassador&utm_medium=di_summer_blendnet_1&utm_campaign=ZW4204
Exciting Internship Opportunity: Frontend SDE Intern
Role: Frontend SDE Intern
Company: Blendnet.ai
Stipend: โน25,000 per month
Perks: Pre-Placement Offer (PPO)
Responsibilities: Develop user-facing features, engage in responsive design, collaborate with UX/UI designers, optimize application performance, and maintain documentation.
Apply Now ๐: https://www.foundit.in/zuno/app/job/frontend-sde-intern/description?utm_source=campus-ambassador&utm_medium=di_summer_blendnet_1&utm_campaign=ZW4204
Role: Frontend SDE Intern
Company: Blendnet.ai
Stipend: โน25,000 per month
Perks: Pre-Placement Offer (PPO)
Responsibilities: Develop user-facing features, engage in responsive design, collaborate with UX/UI designers, optimize application performance, and maintain documentation.
Apply Now ๐: https://www.foundit.in/zuno/app/job/frontend-sde-intern/description?utm_source=campus-ambassador&utm_medium=di_summer_blendnet_1&utm_campaign=ZW4204
Exciting Internship Opportunity: Frontend SDE Intern
Role: Frontend SDE Intern
Company: Blendnet.ai
Stipend: โน25,000 per month
Perks: Pre-Placement Offer (PPO)
Responsibilities: Develop user-facing features, engage in responsive design, collaborate with UX/UI designers, optimize application performance, and maintain documentation.
Apply Now ๐: https://www.foundit.in/zuno/app/job/frontend-sde-intern/description?utm_source=campus-ambassador&utm_medium=di_summer_blendnet_1&utm_campaign=ZW4204
www.foundit.in
Frontend SDE (Intern) | Internships, Jobs - Zuno by Foundit
blendnet.ai is hiring for Frontend SDE (Intern) on Zuno by Foundit | Apply now
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Sign Up | LinkedIn
500 million+ members | Manage your professional identity. Build and engage with your professional network. Access knowledge, insights and opportunities.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Qualcomm
๐ Job Title: Associate Engineer
โ๐ป YOE: 0-2 years
โก๏ธ Apply: https://careers.qualcomm.com/careers/job/446699291289
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐ Job Title: Associate Engineer
โ๐ป YOE: 0-2 years
โก๏ธ Apply: https://careers.qualcomm.com/careers/job/446699291289
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
Qualcomm
Associate Engineer- MST | Qualcomm Careers | Engineering Jobs and More | Qualcomm
Search open positions at Qualcomm. Learn more about how our culture of collaboration and robust benefits program allow our employees to live well and exceed their potential.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Jio Haptik is HIRING! ๐
Position: Area Sales Associate
Graduation Years: 2023-2026
Stipend: โน25,000/month + Placement Offer
Locations: Hyderabad / Secunderabad, Telangana, Surat, Pune, Kolkata
๐ Apply Here: https://www.foundit.in/zuno/app/job/sales-development-representative-intern-2/description?utm_source=campus-ambassador&utm_medium=jiohaptik&utm_campaign=ZW4204
Position: Area Sales Associate
Graduation Years: 2023-2026
Stipend: โน25,000/month + Placement Offer
Locations: Hyderabad / Secunderabad, Telangana, Surat, Pune, Kolkata
๐ Apply Here: https://www.foundit.in/zuno/app/job/sales-development-representative-intern-2/description?utm_source=campus-ambassador&utm_medium=jiohaptik&utm_campaign=ZW4204
www.foundit.in
Area Sales Associate - Contract | Internships, Jobs - Zuno by Foundit
Jio Haptik is hiring for Area Sales Associate - Contract on Zuno by Foundit | Apply now
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
EY Technology Consulting_Data Engineer Opening
Fresher โ 7 LPA+
Experienced โ Upto 25 LPA (Depend Upon Experience)
https://forms.office.com/pages/responsepage.aspx?id=mT-XW99360uyfaoMcLhILDvBfbGC2FlCvzlTcpEMzwlUNFhNWElaNjlGODJVVTQ5R1Q1SzFDVlJVTC4u
Fresher โ 7 LPA+
Experienced โ Upto 25 LPA (Depend Upon Experience)
https://forms.office.com/pages/responsepage.aspx?id=mT-XW99360uyfaoMcLhILDvBfbGC2FlCvzlTcpEMzwlUNFhNWElaNjlGODJVVTQ5R1Q1SzFDVlJVTC4u
Office
Please fill out this form
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Securonix is hiring Associate Software Engineer
For 2023, 2022 grads
Location - Bangalore (Hybrid)
https://securonix.bamboohr.com/careers/1447?source=aWQ9NA%3D%3D
For 2023, 2022 grads
Location - Bangalore (Hybrid)
https://securonix.bamboohr.com/careers/1447?source=aWQ9NA%3D%3D
Securonix
Current Openings
Take a look at the current openings at Securonix
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Kraftshala is hiring Frontend Intern
For 2024, 2025, 2026 grads
https://app.turbohire.co/get/QlNxelh
Stiped - 15K per month
For 2024, 2025, 2026 grads
https://app.turbohire.co/get/QlNxelh
Stiped - 15K per month
TurboHire
AI-Powered Recruitment Automation Platform
TurboHire helps organizations find the best candidates with 98% accuracy, improves recruiter productivity by 2X, and makes recruitment 70% faster.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Arcesium is hiring for Software Engineer
Expected Salary: 15-20 LPA
Experience: 0-2 years
Apply here:
https://boards.greenhouse.io/arcesiumllc/jobs/4325202007?gh_src=08c1e8d87us
Expected Salary: 15-20 LPA
Experience: 0-2 years
Apply here:
https://boards.greenhouse.io/arcesiumllc/jobs/4325202007?gh_src=08c1e8d87us
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Razorpay is hiring for Associate Technical Consultant
Batch : 2023/2024
Expected Salary: 6-10 LPA
Apply here:
https://boards.greenhouse.io/razorpaysoftwareprivatelimited/jobs/4375305005
Batch : 2023/2024
Expected Salary: 6-10 LPA
Apply here:
https://boards.greenhouse.io/razorpaysoftwareprivatelimited/jobs/4375305005
boards.greenhouse.io
Associate Technical Consultant
Bangalore
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Practo is hiring for Software Development Engineer Intern
Stipend: 30K per month
Apply here:
https://internshala.com/internship/detail/software-development-engineer-internship-in-bangalore-at-practo1717503689/
Stipend: 30K per month
Apply here:
https://internshala.com/internship/detail/software-development-engineer-internship-in-bangalore-at-practo1717503689/
Internshala
Software Development Engineer Internship in Bengaluru at Practo
As a Software Development Engineer intern at Practo, you will have the opportunity to work on cutting-edge technologies and make a real impact on healthcare innovation. You will be part of a dynamic team of developers, designers, and product managers whoโฆ
๐ข1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Scopely is hiring for Intern - Software Engineer (Unity)
Apply here:
https://scopely.com/en/careers?jobviteiframe=job/oBvQtfw9&jvst=Job+Board&jvsd=LinkedIn&nl=1
Apply here:
https://scopely.com/en/careers?jobviteiframe=job/oBvQtfw9&jvst=Job+Board&jvsd=LinkedIn&nl=1
Scopely
Home - Scopely
Seize the play