about | help | code help+videos | done | prefs |
Weaving Words4 Backwards - This is a new word game - Given two words of different length, write a program that will "weave" the words together. Take the last letter from the largest string and then the last letter from the smallest string. Continue this backwards pattern. When you run out of letters from the shortest string, finish with the rest of the letters from longest string. Return the resulting "Weave Backwards Word". weaveWords4Backwards("musical", "greatness") → "slsaecnitsauemrg" weaveWords4Backwards("calculus", "math") → "shutlaumclac" weaveWords4Backwards("champion", "watch") → "nhocitpamwahc" ...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: 158
Copyright Nick Parlante 2017 - privacy