in reply to Words in Words

checks to see if each word exists within another word in the list

Impossible; such a list would be circularly containing! Therefore, the answer is always false. O(1)

Or did you mean, checks each word to see whether it exists within another word in the list?

Replies are listed 'Best First'.
Re^2: Words in Words
by sarchasm (Acolyte) on Sep 30, 2011 at 21:29 UTC
    Yes. I do mean the program should, as you stated, "checks each word to see whether it exists within another word in the list"