Monday
August 31, 2015

Homework Help: Computer Science

Posted by S on Tuesday, October 30, 2012 at 11:18pm.

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

Members