Friday
April 25, 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

probability - out of 250 students interviewed at a community college, 90 were ...
computer science - Hey I have three questions with creating these methods, ...
computer science - Hey I have three questions with creating these methods can ...
physics - a 1.29 kg ball is connected by means of two massless strings to a ...
Computer science - THIS IS C PROGRAMMING I NEED TO CREATE A METHOD! Create a ...
Math - Three blue and five red balloons are each tied to a string and the ...
physics - Three blocks of masses M1=26kg,M2=38kg and M3=41kg are connected by 2 ...
Computer Science JAVA FUNCTIONS - Write a Function You will be given one of the ...
Computer science - 1.Fraction that has a numerator and a denominator. The class ...
Physics - A mobile consists of two very lightweight rods of length l = 0.400 m ...

Search
Members