Skip to content

Instantly share code, notes, and snippets.

Iyk Azorji iyk-azorji

Block or report user

Report or block iyk-azorji

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
iyk-azorji / gist:104f8c08d439cd3072b8afeaaa492702
Last active Jan 6, 2020
Iyk Azorji Interview code response
View gist:104f8c08d439cd3072b8afeaaa492702
* Assume we have a list of words from the English dictionary
* [“water”, “big”, “apple”, “banana”, “york”, “amsterdam”, “orange”, “machintosh”, “bottle”, “book”]
* And another long list go string to process.
* Write a function that will identify “compound words” and return them
* Input: [“paris”, “applewatch”, “ipod”, “bigbook”, “orange”, “waterbottle”]
* Output: [“applewatch”, “bigbook”, “waterbottle”]
const dictionary = ["water", "big", "apple", "banana", "york", "amsterdam", "orange", "machintosh", "bottle", "book"];
You can’t perform that action at this time.