I don"t know how to describe the seed nodes, which are those under the child nodes that have no child nodes (what exactly is the node, would you please correct it for me?).
as shown in the figure, the red box marks the child nodes that need to be obtained:
is there a good way to get it?
Let"s not mention the method ofPS: traversing all nodes and then determining whether the node has children or not. Is there anything more efficient or skillful?