Wednesday
October 22, 2014

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

physics - a 1.29 kg ball is connected by means of two massless strings to a ...
physics - Two strings are adjusted to vibrate at exactly 224 Hz. Then the ...
Physics - You’ve purchased two identical violin strings. You install one of the ...
physics - Two balls have the same mass of 3.085 kg and identical charges of 21.0...
pfysics - Two balls have the same mass of 0.525 kg and identical charges of 13.0...
Physics - Please someone help me I'm desperate!!!! Two steel guitar strings have...
physics - A doubly tethered model airplane of mass 1.0 kg is attached to a ...
physics - An object of weight 50 N is suspended vertically by two strings. The ...
Physics - Two identical violin strings, when i tune and stretched with the same ...
Physics - Standing waves are set up on two strings fixed at each end, as shown ...

Search
Members