All Questions
1 question
2
votes
1
answer
1k
views
How to randomly get or find a sub-tree (include root node) from a given tree that contains n leaf-nodes
I have a non-binary tree.
I want to randomly find a "sub-trees" that are connected from root to leaf which must have at least n leaf-nodes (leaf-nodes of sub-tree must be leaf-nodes of given tree).
...