4
An Interview Problem
source link: http://algo-geeks.blogspot.com/2012/10/an-interview-problem.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
An Interview Problem
Given an input string and a dictionary of words, segment the input string into a space-separated sequence of dictionary words if possible. For example, if the input string is "applepie" and dictionary contains a standard set of English words, then we would return the string "apple pie" as output.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK