In My Egotistical Opinion, most people's C programs should be indented six feet downward and covered with dirt. Blair P. Houghton

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.