-Vijju
On 11/1/06, ravi <
[EMAIL PROTECTED]> wrote:
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
-~----------~----~----~----~------~----~------~--~---
- [algogeeks] whether 2 lists produce identical BST's or... ravi
- [algogeeks] Re: whether 2 lists produce identical... Vijendra Singh
- [algogeeks] Re: whether 2 lists produce ident... ravi
- [algogeeks] Re: whether 2 lists produce i... Vijendra Singh
- [algogeeks] Re: whether 2 lists produ... [EMAIL PROTECTED]
- [algogeeks] Re: whether 2 lists ... Arun
- [algogeeks] Re: whether 2 li... arun kumar manickan
- [algogeeks] Re: whether 2 li... [EMAIL PROTECTED]
- [algogeeks] Re: whether ... Arunachalam
- [algogeeks] Re: whether ... Arun
- [algogeeks] Re: whether ... Arun
- [algogeeks] Re: whether ... Arun prasath N
- [algogeeks] Re: whether 2 lists produce i... L7
