Write the function longest that, given a nonempty list of strings, finds the longest even-length string that ends with ing. It takes a list of strings L as input and returns a string. If there are many longest strings, return the first. If there are no such strings, return the empty string (which clearly indicates that no string was found, since a valid string would need to be at least length 3).
+2
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write the function longest that, given a nonempty list of strings, finds the longest even-length string that ends with ing. It takes a list ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Write the function longest that, given a nonempty list of strings, finds the longest even-length string that ends with ing. It takes a list of strings L as input and returns a string. If there are many longest strings, return the first.