Given a list of words, this Python program finds the longest word that can be made by concatenating other words from the list. For example, given the input ["cat", "cats ", "dog", "dogs", "pig", "pigs"], the output would be "catsdogspigs".
This is a great solution! The candidate has thought about the problem and come up with a solution that is both complete and efficient.
Evaluated at: 2022-11-10 06:17:21