XK8ER
asked on
vb.net - generate specific word list
Hello there,
I have a list of 100 words for example
dog
cat
bird
monkey
mouse
fish
whale
horse
chicken
I would like to know how can I generate a unique and complete list using 3 words
something like this
chicken_cat_whale
horse_fish_mouse
etc..
I have a list of 100 words for example
dog
cat
bird
monkey
mouse
fish
whale
horse
chicken
I would like to know how can I generate a unique and complete list using 3 words
something like this
chicken_cat_whale
horse_fish_mouse
etc..
Does order or repetition count?
ASKER
dog_dog_cat doesnt work
dog_cat_dog doesnt work
they must be different.. the order doesn't matter..
dog_cat_dog doesnt work
they must be different.. the order doesn't matter..
Put all 100 words in array, and apply for loop over 100 words; take a new hashtable, create a string of 3 words combining with underscore(_). Add this key value pair in hashtable, before adding you can check whether string is already added or not..
Hope this will help you.
Hope this will help you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.