ICPS trip question

At 12:37 i another case should also be taken
dist 1[y]+f(x,y)+dist 2[x]
bcoz the edge is undirected

@deepakjumani09, yes , if the flight is undirected than for flight between x to y , you have to take cases
min( dist1[x]+f(x,y)+dist2[y] , dist1[y]+f(x,y)+dist2[y])

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.