Monday
March 27, 2017

Post a New Question

Posted by on .

Given three Strings, str1, str2 and str3, return the longest String. If all three Strings have the same length, return "same". There will not be a tie between two longest Strings.

longestString("apple", "banana", "pear") → "banana"
longestString("one", "two", "three") → "three"
longestString("bob", "jim", "joe") → "same"

Answer This Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Post a New Question