about | help | code help+videos | done | prefs |
Given a list of Strings, return the longest String that is in the list. If the list is empty, return an empty String. If multiple words are tied for the longest length, return the first word in the list with that length. list_longestWord(["Hi", "Hello"]) → "Hello" list_longestWord(["Comp", "Sci", "AP"]) → "Comp" list_longestWord([]) → "" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy