Longest Spell (Strings)
Read a line of words and print the longest one (the first, if tied).
Input: One line.
Output: One word.
Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- Only replace the best on a strictly longer word.