id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

andersoniii.edwin@cusd80.com > weaveThreeWords2
prev  |  next  |  chance

Weaving Words - This is a new word game - Given three words of unequal lengths, write a program that will "weave" the words together. Take the first letter from longest string, then a letter from middle string and then the smallest string. Continue this pattern and return the resulting "Weave Word".


weaveThreeWords2("abc", "ab", "a") → "aaabbc"
weaveThreeWords2("weave", "words", "great") → "wwgeorarevdaest"
weaveThreeWords2("calculus", "advanced", "saturday") → "casadalvtcauunrlcdueasdy"

...Save, Compile, Run (ctrl-enter)

public String weaveThreeWords2(String str1, String str2, String str3) }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 110

Copyright Nick Parlante 2017 - privacy