about | help | code help+videos | done | prefs |
Write a method that interlaces the word "pool" into the input string. The string to return will be in the form "xpxoxoxlxpxoxoxlxpxoxoxl" of the appropriate length where all of the x-es are characters from the original string in the original order. poolWordInsert("Watch out") → "Wpaotoclhp oooultp" poolWordInsert("Jump") → "Jpuomopl" poolWordInsert("") → "" ...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: 290
Copyright Nick Parlante 2017 - privacy