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

 

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

Un-Weaving Three Words - This is a new word game - Given one word, write a program that will "un-weave" the word into three words of same length. Take the first letter from String combo and place into the first string, take the next letter and place into second string and take the next letter and place into third string. Continue this pattern and return the resulting "Un-Weave Word" into three words. Return the first string concatenate with the second and third to return one "triple word" with a hyphen in the middle. example:"mdkoaimdd" becomes: "mom-dad-kid"


unWeave3Words("aaabbbccc") → "abc-abc-abc"
unWeave3Words("qst") → "q-s-t"
unWeave3Words("wwgeorarevdaest") → "weave-words-great"

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

public String unWeave3Words(String combo){ }

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: 111

Copyright Nick Parlante 2017 - privacy