3
I need to create an algorithm that will define if a path between the value a and b are valid, my doubt is in relation to these rules, for example between node 3 and 7 there is a valid path, but between nodes 3 and 10 I would need to perform a turn, that still makes it valid?! and between nodes 1 and 7 there is also a valid path?!
Hello @utluiz, because it is in my structure today the "son" does not know who is his "father", reevaluated the issue with their views I ended up realizing that the goal of the exercise is to be simple even. In the case the examples cited above would exist only the paths 3-7, ie there is no ( at least in this proposal ) that return to the parent node.
– Emanoel