Hi all,
I'm working on an assignment and I'm about 80% done. I have to create a program that asks for 10 random words to be inputted by a user. So far, so good.
Then the program has to alert the user if they enter a word that they have entered before, thus not counting towards the ten word total.
My question is this: Do I use a linear search? I'm stuck at finding the dupes.
I came across this thread but I didn't really get the answer I'm looking for.
Any suggestions?
I'm working on an assignment and I'm about 80% done. I have to create a program that asks for 10 random words to be inputted by a user. So far, so good.
Then the program has to alert the user if they enter a word that they have entered before, thus not counting towards the ten word total.
My question is this: Do I use a linear search? I'm stuck at finding the dupes.
I came across this thread but I didn't really get the answer I'm looking for.
Any suggestions?