vamshi vijay vamshi1252@... writes:
at Sagar
See at level 4, 81 leaf nodes are possible, since in question it has been
given 28 leaf nodes, if i use just 10 nodes from level 3 (27 nodes), i can
get 28 leaves, but if u observe the remaining 17 nodes in the 3rd level are
also
is it like a number base problem? where a set of alpha is (0,1,2),
and the n is the lenght of number
such as
(p,n) 3 (0,1) of length 3
so the value is (000)(001)(010)...
On 8月10日, 下午9时19分, Amethy hobby news...@gmail.com wrote:
I thought the backtracking is the method to solve this problem
@Nikhil: There is no way to tell how many nodes the ternary tree has.
After all, a ternary tree with one leaf node can contain any number of
nodes.
Dave
On Aug 9, 1:37 pm, NIKHIL nikhil.jain.shali...@gmail.com wrote:
In a ternary Tree No of leaves 28. How many nodes it have?
An AVL tree with