Max flow Edmond karp

Sir can you please look into my code of edmond karp. It is accepting garbage value. link:https://ide.codingblocks.com/s/248641

Hello @khushi91200,

Your code is an exact copy of the code in the video.
But, you are still getting a different output.

The only reason for this is the difference in compiler.
In the video, the compiler is initializing the capacity with 0.

But, your case it is not happening.
So, i explicitly coded the initialization.

Corrected code:

Hope, this would help.
Give a like if you are satisfied.

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.