Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Your solution will fail a case like dict = ['ab', 'abc', 'd'], word = "abcd".
Well it's not that straightforward. Your task is to check if the word is completely made up by combining words from the dictionary. So if dict=['code', 'wars'], combining the 2 words, we have 'codewars', while 'codewar' is impossible. Is it clearer for you?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Which test case says overlapping should be true?
Good point! Added the test cases. Thanks.
Overlapping doesn't count, so that would be false.
This problem only concerns with strictly combined words, so overlapping words should return false.