Tuesday, February 7, 2012

List items containing all the characters of a given word


There is a list of items. Given a specific word, e.g., “sun”, print out all the items in list which contain all the characters of “sum”

For example if the given word is “sun” and the items are “sunday”, “geeksforgeeks”, “utensils”, “”just” and “sss”, then the program should print “sunday” and “utensils”.
http://www.geeksforgeeks.org/print-list-items-containing-all-characters-of-a-given-word/

No comments:

Post a Comment