English
Open in Telegram

Postint minimumWeight(int n, vector<vector<int>>& edges, int C1, int C2) {

12 June 2023
H
Happy
int minimumWeight(int n, vector<vector<int>>& edges, int C1, int C2) { vector<long long> A(n,LLONG_MAX), B(n,LLONG_MAX); Dijkstra(C1,graph,A); Dijkstra(C2,graph,B); int node=0 , dist=LLONG_MAX; for(int i=0;i<=n-1;i++){ if(A[i]==LLONG_MAX || B[i]==LLONG_MAX) continue; if(dist>A[i]+B[i]){ dist= A[i]+B[i]; node=i; } } return node; }
1.2K ·

Nearby in the feed

MMachine Learning coderT5 Hands on Successfully done ✅.MMachine Learning coderJuspay solutions group : https://t.me/cod_solutions
this message
MMachine Learning coderNearest meeting cellMMachine Learning coderint solve(vector<int>& maze,int n) { int maxSum=-1; for(int i=0; i<n; i++) { int node=i; int sum=0; unordered_set<int> visited; while(node < n && node >
DDeloitte | COGNIZANT | IBM | CAPGEMINIDeloitte | COGNIZANT | IBM | CAPGEMINI@python_java_Coding · channel · Tech
7 178subscribers406average post reach
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count