subset algo, hash table

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • someguy

    #1

    subset algo, hash table

    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

Working...