DIY: Word Break
Solve the interview question "Word Break" yourself in this lesson.
We'll cover the following...
Problem statement
You are given a non-empty string s
and an array of strings called subs
. The subs
array will contain a unique set of strings. Your job is to determine if s
can be broken down into a ...