educative.io

Solution questions

The code doesn’t have enough comments and confused me. Why in the 1st for loop it doesn’t care about getSrc() and in 2nd for loop, it cares about getSrc()?

The solutions in this course sometimes are difficult to understand.

Hi Franklin,

Thank you for your feedback. We are in the process of revamping this course and you will soon be able to see new changes.

Hi Franklin,

Thank you for pointing out the inconsistency with getSrc(). We can combing the two loops into one. All we need to do is mark our first node as visited, and then the for loop will find this node’s outgoing edges.

The content has been updated. Feel free to have a look.

Thank you for the reply! However, I don’t find the update in java code. Where is the code you updated?

Do you know when the new version will be released? And will there be release notes containing the updated content summary?