In this article we are going to talk about a very interesting problem which is frequently asked in coding interviews and programming competitions - the Word Break Problem.
We have solved the Word Break problem using:
Recursive approach
Dynamic Programming [O(N^2) time, O(N^2) space]
Problem Statement
In the problem we are given a string S and a dictionary of words,we have to determine whether S can be segmented into non-empty substrings of one or more dictionary words.(The words need not be un...
Published on November 03, 2020 01:14