I think u have misunderstood the question.

I am not asking about the two lists have identical elements  or not?

If we have two lists then how will we check whther two lists  produce
identical BSTs or not?

For example

L1 = { 10, 5, 15 }
L2 = { 5 , 10, 15 }
L3 = { 10, 15, 5 }

L1, L2, L3 all have identical elements.
But only L1, L3 will produce identical BSTs.

L1, L3 produce tree as        10
                                    5        15

L2 produce BST as             5
                                              10
                                                     15

I think now the question is clear?????


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups-beta.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to