Skip to main content

2 docs tagged with "trie"

View all tags

Word Break

This question is asked by Amazon. Given a string s and a list of words representing a dictionary, return whether or not the entirety of s can be segmented into dictionary words.