search-tree

Tree Search – given two nodes in a tree, check if they are connected – python

Tree Search – given two nodes in a tree, check if they are connected – python Question: Given a search tree, e.g. “1” └ “2” ├ “2.1” ┊ └ “3” ┊ └ “2.2” └ “2.2.1” └ “3” As well as two nodes, a and b, that belong on that tree, e.g. “2.1” and “3”. How …

Total answers: 3