小儿闹,硬处理有用吗?# Parenting - 为人父母
l*r
1 楼
Given a set of words, find the longest word that are made up from other
words.
For example, given set:
cat, cats, catch, dog, fish, catcatchdog, dogs, catsdoor,
The longest one is catcatchdog, which is made up from cat, catch, and dog.
Thanks!
words.
For example, given set:
cat, cats, catch, dog, fish, catcatchdog, dogs, catsdoor,
The longest one is catcatchdog, which is made up from cat, catch, and dog.
Thanks!