Ampligence Interview Question : Tree
Given N distinguishable ndoes, how many binary trees can you construct?
Note, trees won't have to be balanced.
Part 2,
What if the nodes are indistinguishable?
Given N distinguishable ndoes, how many binary trees can you construct?
Note, trees won't have to be balanced.
Part 2,
What if the nodes are indistinguishable?