The best programmers are not marginally better than merely good ones. They are an order-of-magnitude better, measured by whatever standard: conceptual creativity, speed, ingenuity of design, or problem-solving ability. Randall E. Stross

Word Break in Java

Language Java | Level Intermediate | Category Data structure | September 9, 2015 10:16 am


Data structure Description

Given an input string and a dictionary of words, find out if the input string can be segmented into a space-separated sequence of dictionary words.

Write a program to break the words in given string.


Output

   					 

Break string with 'Hello' and 'how' returns: true

				    

Comments


No comments available!

Please login to add comments.