i don,t get how the output ends up as 61.200000
Can't get the sample example
@kdanbhat hi,you can use the probability multiplication property in this question,in given sample case the maximum probability path will be 1 -> 4 -> 3 -> 5 and ans is 61.200000 using calculation:
61.200000 = 85(1–>4)*90(4–>3)*80(3–>5).
Hope you get it,try writing your code
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.