TopCoder problem "Combiner" used in SRM 12 (Division I Level One , Division II Level One)



Problem Statement

    
Class Name:  Combiner
Method Name: combine
Parameters:  String,String
Returns:     String

Implement a class Combiner, which contains a method combine.  The method takes
two Strings as parameters and combines them, alternating letters, starting with
the first letter of the first String, followed by the first letter of the
second String, then second letter of first String, etc.  The remaining letters
of the longer String are then appended to the end of the combination String and
this combination String is returned.

Here is the method signature:
public String combine(String s1,String s2);

s1 and s2 are Strings of length between 1 and 50 letters, inclusive.

Examples:
If s1="Tpo" and s2="oCder" the method returns "TopCoder".
If s1="aa" and s2="bb" the method returns "abab".
 

Definition

    
Class:Combiner
Method:combine
Parameters:String, String
Returns:String
Method signature:String combine(String param0, String param1)
(be sure your method is public)
    

Problem url:

http://www.topcoder.com/stat?c=problem_statement&pm=97

Problem stats url:

http://www.topcoder.com/tc?module=ProblemDetail&rd=3011&pm=97

Writer:

Unknown

Testers:

Problem categories: