Re: [algogeeks] Re: Lookup in a table...

2010-11-20 Thread vaibhav agrawal
Hi Gene, This works. Thanks for your suggestion. Regards, Vaibhav On Tue, Nov 16, 2010 at 8:51 AM, Gene wrote: > Your description is imprecise. I guess you mean the answer is "B," > not "D" as you said. The following may be based on an improper > reading of your description. For example I'm

Re: [algogeeks] Re: Lookup in a table...

2010-11-15 Thread jagannath prasad das
i guess you dont require first hash at all.create a hash map that maps a letter to a set of keys now once you have all your sets you can just compare the input set with your the formed sets... On Tue, Nov 16, 2010 at 8:51 AM, Gene wrote: > Your description is imprecise. I guess

[algogeeks] Re: Lookup in a table...

2010-11-15 Thread Gene
Your description is imprecise. I guess you mean the answer is "B," not "D" as you said. The following may be based on an improper reading of your description. For example I'm assuming that each letter maps to each int at most once. And each set of ints maps to exactly one letter. Your method i