about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 111
Copyright Nick Parlante 2017 - privacy