1 year ago

#379371

test-img

darth_vader

Calculate Total fun from 4 cities . Interview Question DSA round

Given there are cities , and each city has a fun factor associated with it . There is a bidirectional path between cities . Calculate the max total fun by choosing only 4 cities and show the list of cities .

Eg :
Fun factors
LA- 10000
CH- 1000
Del- 5
Iowa- 200
Mum-50000

Paths-
LA - CH
Ch-Iowa
Del-Iowa
Del-mum

O\p - mum,del,iowa,ch : 51205

java

algorithm

graph

graph-theory

0 Answers

Your Answer

Accepted video resources