subset algo, hash table
From: someguy (inderjitrai_at_yahoo.com)
Date: 10/25/04
- Next message: Daniel T.: "Re: UML tool?"
- Previous message: Hal Rosser: "Re: UML tool?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 25 Oct 2004 15:57:40 -0500
Hi,
I'm trying to write a function in Java that takes in a string and
prints all the subsets (For example, if you are given "ABC", you would
print: A B C AB AC BC ABC). Any suggestions?
Also, how could a linked list and a hash table be combined to allow
someone to run through the list from item to item while still maintaining
the ability to access an individual element in O(1) time?
TIA
- Next message: Daniel T.: "Re: UML tool?"
- Previous message: Hal Rosser: "Re: UML tool?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|