We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Hello,
Some questions:
I guess we talk about binary tree here, aren't we ?
Does changing a leaf place from left son to right son of a node is considered as a different tree ?
Would it be possible (to clarify) to add the result for a simple test case like: N = 3 and L = 2 or event N = 2 and L = 1, we the different possibility decomposed.
Thank you,
Damien
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
How Many Trees?
You are viewing a single comment's thread. Return to all comments →
Hello, Some questions: I guess we talk about binary tree here, aren't we ? Does changing a leaf place from left son to right son of a node is considered as a different tree ? Would it be possible (to clarify) to add the result for a simple test case like: N = 3 and L = 2 or event N = 2 and L = 1, we the different possibility decomposed.
Thank you,
Damien