When you are adding to the heap on drawing, you added the station distance, instead of gas capacity. It should be [40, 30, 30] added to the heap when you ran of gas.
Thank you for the nice visualization and explanation, Just some small suggestions, please use the same mice you used with the ilisturation during the coding session as well, also try to zoom a bit more into the code because there is no need to see the problem statement anymore at this context. None the less I learned a lot and hope that you keep doing more and more interesting videos, thanks.
Thanks for the kind words. I have already started hiding the problem section in more recent videos to give more space to the code. Unfortunately I cannot use the same green mouse pen as this is in another app and not a general screen writer.
When you are adding to the heap on drawing, you added the station distance, instead of gas capacity. It should be [40, 30, 30] added to the heap when you ran of gas.
Keep em coming!
Thank you for the nice visualization and explanation,
Just some small suggestions, please use the same mice you used with the ilisturation during the coding session as well, also try to zoom a bit more into the code because there is no need to see the problem statement anymore at this context.
None the less I learned a lot and hope that you keep doing more and more interesting videos, thanks.
Thanks for the kind words. I have already started hiding the problem section in more recent videos to give more space to the code. Unfortunately I cannot use the same green mouse pen as this is in another app and not a general screen writer.
Thanks