If a word is made up of two valid words
问题 Given a dictionary find out if given word can be made by two words in dictionary. For eg. given "newspaper" you have to find if it can be made by two words. (news and paper in this case). Only thing i can think of is starting from beginning and checking if current string is a word. In this case checking n, ne, new, news..... check for the remaining part if current string is a valid word. Also how do you generalize it for k(means if a word is made up of k words) ? Any thoughts? 回答1: Starting