The trouble with programmers is that you can never tell what a programmer is doing until itís too late. Seymour Cray

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.