People think that computer science is the art of geniuses but the actual reality is the opposite, just many people doing things that build on each other, like a wall of mini stones. Donald Knuth

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.